2019-12-23 05:42:14 +01:00
|
|
|
[package]
|
2020-01-02 10:43:19 +01:00
|
|
|
name = "anki"
|
2020-11-02 09:17:26 +01:00
|
|
|
version = "0.0.0"
|
2021-11-18 11:51:10 +01:00
|
|
|
edition = "2021"
|
2020-04-03 00:44:59 +02:00
|
|
|
authors = ["Ankitects Pty Ltd and contributors"]
|
2020-01-02 10:43:19 +01:00
|
|
|
license = "AGPL-3.0-or-later"
|
2020-04-02 04:01:48 +02:00
|
|
|
description = "Anki's Rust library code"
|
2020-11-01 05:26:58 +01:00
|
|
|
build = "build/main.rs"
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
name = "anki"
|
|
|
|
path = "src/lib.rs"
|
2019-12-24 04:33:44 +01:00
|
|
|
|
2021-12-17 10:04:42 +01:00
|
|
|
[features]
|
|
|
|
bench = ["criterion"]
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "benchmark"
|
|
|
|
harness = false
|
|
|
|
required-features = ["bench"]
|
|
|
|
|
2020-11-02 09:17:26 +01:00
|
|
|
# After updating anything below, run ../cargo/update.py
|
|
|
|
|
|
|
|
[build-dependencies]
|
2021-11-18 11:54:00 +01:00
|
|
|
prost-build = "0.9.0"
|
2020-11-02 09:17:26 +01:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2021-10-02 12:42:03 +02:00
|
|
|
env_logger = "0.9.0"
|
|
|
|
tokio = { version = "1.12.0", features = ["macros"] }
|
2020-11-02 09:17:26 +01:00
|
|
|
|
2019-12-24 04:33:44 +01:00
|
|
|
[dependencies]
|
2020-07-13 05:34:37 +02:00
|
|
|
# pinned as any changes could invalidate sqlite indexes
|
|
|
|
unicase = "=2.6.0"
|
2021-04-27 15:11:22 +02:00
|
|
|
|
2021-06-25 07:35:25 +02:00
|
|
|
anki_i18n = { path="i18n" }
|
2021-03-26 00:40:41 +01:00
|
|
|
|
2021-12-17 10:04:42 +01:00
|
|
|
criterion = { version = "0.3.5", optional = true }
|
|
|
|
|
2021-10-02 12:42:03 +02:00
|
|
|
nom = "7.0.0"
|
|
|
|
proc-macro-nested = "0.1.7"
|
|
|
|
slog-term = "2.8.0"
|
|
|
|
blake3 = "1.0.0"
|
|
|
|
bytes = "1.1.0"
|
2021-06-25 07:35:25 +02:00
|
|
|
chrono = "0.4.19"
|
|
|
|
coarsetime = "0.1.19"
|
2021-10-02 12:42:03 +02:00
|
|
|
flate2 = "1.0.22"
|
|
|
|
fluent = "0.16.0"
|
2021-06-25 07:35:25 +02:00
|
|
|
fluent-bundle = "0.15.1"
|
2021-10-02 12:42:03 +02:00
|
|
|
futures = "0.3.17"
|
2021-06-25 07:35:25 +02:00
|
|
|
hex = "0.4.3"
|
2020-01-20 10:12:34 +01:00
|
|
|
htmlescape = "0.3.1"
|
2021-06-25 07:35:25 +02:00
|
|
|
intl-memoizer = "0.5.1"
|
|
|
|
itertools = "0.10.1"
|
2020-11-02 09:17:26 +01:00
|
|
|
lazy_static = "1.4.0"
|
2021-10-02 12:42:03 +02:00
|
|
|
num_enum = "0.5.4"
|
2021-06-25 07:35:25 +02:00
|
|
|
num-integer = "0.1.44"
|
|
|
|
once_cell = "1.8.0"
|
2021-10-02 12:42:03 +02:00
|
|
|
pin-project = "1.0.8"
|
2021-11-18 11:54:00 +01:00
|
|
|
prost = "0.9.0"
|
2021-06-25 07:35:25 +02:00
|
|
|
rand = "0.8.4"
|
|
|
|
regex = "1.5.4"
|
|
|
|
reqwest = { git="https://github.com/ankitects/reqwest.git", rev="7591444614de02b658ddab125efba7b2bb4e2335", default-features=false, features=[
|
2020-12-28 01:12:10 +01:00
|
|
|
"json",
|
|
|
|
"socks",
|
|
|
|
"stream",
|
2021-04-27 14:18:12 +02:00
|
|
|
"multipart",
|
|
|
|
# the Bazel build scripts separate these out by platform
|
2020-12-28 01:12:10 +01:00
|
|
|
"native-tls",
|
2021-04-27 14:18:12 +02:00
|
|
|
"rustls-tls",
|
|
|
|
"rustls-tls-webpki-roots",
|
2021-06-18 10:15:41 +02:00
|
|
|
"rustls-tls-native-roots",
|
2020-12-28 01:12:10 +01:00
|
|
|
] }
|
2021-11-18 23:36:57 +01:00
|
|
|
rusqlite = { version = "0.26.1", features = ["trace", "functions", "collation", "bundled"] }
|
2020-11-02 09:17:26 +01:00
|
|
|
scopeguard = "1.1.0"
|
2021-10-02 12:42:03 +02:00
|
|
|
serde = "1.0.130"
|
|
|
|
serde_derive = "1.0.130"
|
|
|
|
serde_json = "1.0.68"
|
2021-06-25 07:35:25 +02:00
|
|
|
serde_repr = "0.1.7"
|
2020-07-12 03:38:25 +02:00
|
|
|
serde_tuple = "0.5.0"
|
2021-11-18 11:54:00 +01:00
|
|
|
serde-aux = "3.0.1"
|
2020-11-02 09:17:26 +01:00
|
|
|
sha1 = "0.6.0"
|
2021-06-25 08:22:21 +02:00
|
|
|
slog = { version = "2.7.0", features = ["max_level_trace", "release_max_level_debug"] }
|
2021-10-02 12:42:03 +02:00
|
|
|
slog-async = "2.7.0"
|
2020-02-29 10:50:15 +01:00
|
|
|
slog-envlogger = "2.2.0"
|
2021-06-25 07:35:25 +02:00
|
|
|
tempfile = "3.2.0"
|
2021-10-02 12:42:03 +02:00
|
|
|
tokio = { version = "1.12.0", features = ["fs", "rt-multi-thread"] }
|
2021-06-25 08:22:21 +02:00
|
|
|
unic-langid = { version = "0.9.0", features = ["macros"] }
|
2021-06-25 07:35:25 +02:00
|
|
|
unicode-normalization = "0.1.19"
|
2020-11-02 09:17:26 +01:00
|
|
|
utime = "0.3.1"
|
2021-06-25 08:22:21 +02:00
|
|
|
zip = { version = "0.5.13", default-features = false, features = ["deflate", "time"] }
|
2021-10-02 12:42:03 +02:00
|
|
|
async-trait = "0.1.51"
|
|
|
|
ammonia = "3.1.2"
|
2021-02-06 06:02:40 +01:00
|
|
|
pulldown-cmark = "0.8.0"
|
2021-03-01 01:34:04 +01:00
|
|
|
fnv = "1.0.7"
|
2021-11-18 11:54:00 +01:00
|
|
|
strum = { version = "0.23.0", features = ["derive"] }
|
2021-10-02 12:42:03 +02:00
|
|
|
tokio-util = { version = "0.6.8", features = ["io"] }
|
2021-07-16 02:35:09 +02:00
|
|
|
pct-str = { git="https://github.com/timothee-haudebourg/pct-str.git", rev="4adccd8d4a222ab2672350a102f06ae832a0572d" }
|
2021-07-17 07:36:43 +02:00
|
|
|
unic-ucd-category = "0.9.0"
|
2022-02-10 00:55:43 +01:00
|
|
|
id_tree = "1.8.0"
|