anki/rslib/Cargo.toml
Damien Elmes 40e1520acb Drop workspace-hack in favor of workspace deps
Workspace deps were introduced in Rust 1.64. They don't cover all the
cases that Hakari did unfortunately, but they are simpler to maintain,
and they avoid a couple of issues that Hakari had:

- It sometimes made updating dependencies harder due to the locked versions,
so you had to disable Hakari, do the updates, and then re-generate (
e.g. 943dddf28f)
- The current Hakari config was breaking AnkiDroid's build, as it was
stopping a cross-compile from functioning correctly.
2023-06-23 17:41:31 +10:00

106 lines
2.6 KiB
TOML

[package]
name = "anki"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
publish = false
rust-version.workspace = true
workspace = ".."
description = "Anki's Rust library code"
[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"]
[build-dependencies]
anki_io.workspace = true
anki_proto.workspace = true
anki_proto_gen.workspace = true
anyhow.workspace = true
inflections.workspace = true
itertools.workspace = true
prettyplease.workspace = true
prost.workspace = true
prost-reflect.workspace = true
syn.workspace = true
[dev-dependencies]
async-stream.workspace = true
env_logger.workspace = true
wiremock.workspace = true
[dependencies]
criterion = { workspace = true, optional = true }
ammonia.workspace = true
anki_i18n.workspace = true
anki_io.workspace = true
anki_proto.workspace = true
async-compression.workspace = true
async-trait.workspace = true
axum.workspace = true
axum-client-ip.workspace = true
blake3.workspace = true
bytes.workspace = true
chrono.workspace = true
coarsetime.workspace = true
convert_case.workspace = true
csv.workspace = true
difflib.workspace = true
flate2.workspace = true
fluent.workspace = true
fluent-bundle.workspace = true
fnv.workspace = true
futures.workspace = true
hex.workspace = true
htmlescape.workspace = true
hyper.workspace = true
id_tree.workspace = true
itertools.workspace = true
lazy_static.workspace = true
nom.workspace = true
num_cpus.workspace = true
num_enum.workspace = true
once_cell.workspace = true
percent-encoding-iri.workspace = true
pin-project.workspace = true
prost.workspace = true
pulldown-cmark.workspace = true
rand.workspace = true
regex.workspace = true
reqwest.workspace = true
rusqlite.workspace = true
scopeguard.workspace = true
serde.workspace = true
serde-aux.workspace = true
serde_json.workspace = true
serde_repr.workspace = true
serde_tuple.workspace = true
sha1.workspace = true
snafu.workspace = true
strum.workspace = true
tempfile.workspace = true
tokio.workspace = true
tokio-util.workspace = true
tower-http.workspace = true
tracing.workspace = true
tracing-appender.workspace = true
tracing-subscriber.workspace = true
unic-ucd-category.workspace = true
unicase.workspace = true
unicode-normalization.workspace = true
utime.workspace = true
zip.workspace = true
zstd.workspace = true
[target.'cfg(windows)'.dependencies.windows]
version = "0.48.0"
features = ["Media_SpeechSynthesis", "Foundation_Collections", "Storage_Streams"]