hf_xet/Cargo.toml (65 lines of code) (raw):

[package] name = "hf_xet" version = "1.1.5" edition = "2021" license = "Apache-2.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] name = "hf_xet" crate-type = ["cdylib"] [dependencies] data = { path = "../data" } error_printer = { path = "../error_printer" } progress_tracking = { path = "../progress_tracking" } utils = { path = "../utils" } xet_threadpool = { path = "../xet_threadpool" } cas_client = { path = "../cas_client" } async-trait = "0.1" bipbuffer = "0.1" chrono = "0.4" itertools = "0.14" lazy_static = "1.5" pprof = { version = "0.14", features = [ "flamegraph", "prost", "protobuf-codec", ], optional = true } pyo3 = { version = "0.23", features = [ "extension-module", "abi3-py37", "auto-initialize", ] } serde = { version = "1", features = ["derive"] } serde_json = "1" tracing = "0.1" tracing-subscriber = { version = "0.3", features = [ "json", "tracing-log", "env-filter", ] } # Unix-specific dependencies [target.'cfg(unix)'.dependencies] signal-hook = "0.3" # Windows-specific dependencies [target.'cfg(windows)'.dependencies] ctrlc = "3.4" [features] native-tls = ["cas_client/native-tls-vendored"] native-tls-vendored = ["cas_client/native-tls-vendored"] profiling = ["pprof"] [profile.release] split-debuginfo = "packed" opt-level = "s" lto = true codegen-units = 1 # on manylinux and macos maturin + split-debuginfo doesn't output debug symbols for .so objects, # so we need a different profile to build. For mac, the below settings will output a .dSYM # file. For Linux, we are stripping them manually using binutils. [profile.release-dbgsymbols] inherits = "release" debug = true split-debuginfo = "none" [profile.opt-test] inherits = "dev" debug = true opt-level = 3