Skip to content

Commit

Permalink
Add libs subcrate
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed Feb 1, 2022
1 parent fde5110 commit d113e79
Show file tree
Hide file tree
Showing 83 changed files with 465 additions and 522 deletions.
142 changes: 56 additions & 86 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 7 additions & 22 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,16 @@ name = "zola"
[dependencies]
atty = "0.2.11"
clap = { version = "3", features = ["derive"] }
chrono = "0.4"
lazy_static = "1.1"
termcolor = "1.0.4"
# Used in init to ensure the url given as base_url is a valid one
url = "2"
# Below is for the serve cmd
hyper = { version = "0.14.1", default-features = false, features = ["runtime", "server", "http2", "http1"] }
tokio = { version = "1.0.1", default-features = false, features = ["rt", "fs", "time"] }
percent-encoding = "2"
notify = "4"
ws = "0.9"
ctrlc = "3"
open = "2"
globset = "0.4"
relative-path = "1"
pathdiff = "0.2"
serde_json = "1.0"
# For mimetype detection in serve mode
mime_guess = "2.0"

Expand All @@ -47,29 +40,21 @@ errors = { path = "components/errors" }
front_matter = { path = "components/front_matter" }
utils = { path = "components/utils" }
search = { path = "components/search" }
libs = { path = "components/libs" }


[dev-dependencies]
same-file = "1"

[features]
default = ["rust-tls"]
rust-tls = ["site/rust-tls"]
native-tls = ["site/native-tls"]
rust-tls = ["libs/rust-tls"]
native-tls = ["libs/native-tls"]
indexing-zh = ["libs/indexing-zh"]
indexing-ja = ["libs/indexing-ja"]

[workspace]
members = [
"components/config",
"components/errors",
"components/front_matter",
"components/rendering",
"components/site",
"components/templates",
"components/utils",
"components/search",
"components/imageproc",
"components/link_checker",
"components/library",
]
members = ["components/*"]

[profile.release]
lto = true
Expand Down
13 changes: 4 additions & 9 deletions components/config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
[package]
name = "config"
version = "0.1.0"
authors = ["Vincent Prouillet <[email protected]>"]
edition = "2018"
edition = "2021"
include = ["src/**/*"]

[dependencies]
toml = "0.5"
serde = "1"
serde_derive = "1"
chrono = "0.4"
globset = "0.4"
serde = {version = "1.0", features = ["derive"] }
# TODO: remove me if we can get highlight to work with once_cell
lazy_static = "1"
syntect = "4"
unic-langid = "0.9"

errors = { path = "../errors" }
utils = { path = "../utils" }
libs = { path = "../libs" }
Loading

0 comments on commit d113e79

Please sign in to comment.