0570cfdf48
The Rust community appear to have converged on tracing - it's used by the Rust compiler, and receives close to 10x the number of downloads that slog does. Its API is more ergonomic, and it does a much nicer job with async rust. To make this change, we no longer pass around explicit loggers, and rely on a globally-registered one. The log file location has been changed from one in each profile folder to a single one in the base folder. This will remain empty for most users, since only errors are logged by default, but may be useful for debugging future changes.
104 lines
2.7 KiB
TOML
104 lines
2.7 KiB
TOML
[package]
|
|
name = "anki"
|
|
build = "build/main.rs"
|
|
publish = false
|
|
description = "Anki's Rust library code"
|
|
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[lib]
|
|
name = "anki"
|
|
path = "src/lib.rs"
|
|
|
|
[features]
|
|
bench = ["criterion"]
|
|
rustls = ["reqwest/rustls-tls", "reqwest/rustls-tls-native-roots"]
|
|
native-tls = ["reqwest/native-tls"]
|
|
|
|
[[bench]]
|
|
name = "benchmark"
|
|
harness = false
|
|
required-features = ["bench"]
|
|
|
|
# After updating anything below, run ../cargo/update.py
|
|
|
|
[build-dependencies]
|
|
prost-build = "0.11.4"
|
|
which = "4.3.0"
|
|
|
|
[dev-dependencies]
|
|
env_logger = "0.10.0"
|
|
tokio = { version = "1.22", features = ["macros"] }
|
|
|
|
[dependencies.reqwest]
|
|
version = "=0.11.3"
|
|
default-features = false
|
|
features = ["json", "socks", "stream", "multipart"]
|
|
|
|
[dependencies]
|
|
anki_i18n = { path = "i18n" }
|
|
ascii_percent_encoding = { path = "ascii_percent_encoding" }
|
|
|
|
csv = { git = "https://github.com/ankitects/rust-csv.git", rev = "1c9d3aab6f79a7d815c69f925a46a4590c115f90" }
|
|
|
|
# pinned as any changes could invalidate sqlite indexes
|
|
unicase = "=2.6.0"
|
|
|
|
criterion = { version = "0.4.0", optional = true }
|
|
|
|
ammonia = "3.3.0"
|
|
async-trait = "0.1.59"
|
|
blake3 = "1.3.3"
|
|
bytes = "1.3.0"
|
|
chrono = { version = "0.4.23", default-features = false, features = ["std", "clock"] }
|
|
coarsetime = "0.1.22"
|
|
convert_case = "0.6.0"
|
|
dissimilar = "1.0.4"
|
|
flate2 = "1.0.25"
|
|
fluent = "0.16.0"
|
|
fluent-bundle = "0.15.2"
|
|
fnv = "1.0.7"
|
|
futures = "0.3.25"
|
|
hex = "0.4.3"
|
|
htmlescape = "0.3.1"
|
|
id_tree = "1.8.0"
|
|
itertools = "0.10.5"
|
|
lazy_static = "1.4.0"
|
|
nom = "7.1.1"
|
|
num-integer = "0.1.45"
|
|
num_cpus = "1.14.0"
|
|
num_enum = "0.5.7"
|
|
once_cell = "1.16.0"
|
|
pin-project = "1.0.12"
|
|
prost = "0.11.3"
|
|
pulldown-cmark = "0.9.2"
|
|
rand = "0.8.5"
|
|
regex = "1.7.0"
|
|
rusqlite = { version = "0.28.0", features = ["trace", "functions", "collation", "bundled"] }
|
|
scopeguard = "1.1.0"
|
|
serde = "1.0.148"
|
|
serde-aux = "4.1.2"
|
|
serde_derive = "1.0.148"
|
|
serde_json = "1.0.89"
|
|
serde_repr = "0.1.9"
|
|
serde_tuple = "0.5.0"
|
|
sha1 = "0.10.5"
|
|
snafu = { version = "0.7.3", features = ["backtraces"] }
|
|
strum = { version = "0.24.1", features = ["derive"] }
|
|
tempfile = "3.3.0"
|
|
tokio = { version = "1.22", features = ["fs", "rt-multi-thread"] }
|
|
tokio-util = { version = "0.7.4", features = ["io"] }
|
|
tracing = { version = "0.1.37", features = ["max_level_trace", "release_max_level_debug"] }
|
|
tracing-appender = "0.2.2"
|
|
tracing-subscriber = { version = "0.3.16", features = ["fmt", "env-filter"] }
|
|
unic-ucd-category = "0.9.0"
|
|
unicode-normalization = "0.1.22"
|
|
utime = "0.3.1"
|
|
workspace-hack = { version = "0.1", path = "../tools/workspace-hack" }
|
|
zip = { version = "0.6.3", default-features = false, features = ["deflate", "time"] }
|
|
zstd = { version = "0.12.0", features = ["zstdmt"] }
|