chgk_ledb/lib/Cargo.toml

54 lines
1.8 KiB
TOML
Raw Normal View History

2022-11-10 18:43:15 +00:00
[package]
name = "chgk_ledb_lib"
2023-08-18 06:37:27 +00:00
version = "1.2.0"
2022-11-10 18:43:15 +00:00
authors = ["Dmitry <b4tm4n@mail.ru>"]
2023-03-29 10:30:57 +00:00
edition = "2021"
repository = "https://gitea.b4tman.ru/b4tman/chgk_ledb"
license = "MIT"
2023-03-29 10:22:37 +00:00
description = "Библиотека для доступа к файлу базы данных вопросов ЧГК"
2022-11-10 18:43:15 +00:00
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
2023-08-05 20:06:55 +00:00
[features]
2023-08-06 14:01:22 +00:00
default = []
2023-08-05 20:06:55 +00:00
sync = ["zstd", "memmap"]
2023-08-23 18:39:23 +00:00
async = ["futures", "futures-core", "futures-util", "fmmap", "tokio", "async-compression", "async-stream", "pin-project"]
2023-08-05 20:26:45 +00:00
source = ["zip"]
2023-08-23 18:39:23 +00:00
source_async = ["async_zip", "tokio", "futures", "futures-core", "futures-util", "async-stream"]
2023-08-10 11:20:11 +00:00
convert = ["zip"]
2023-08-23 18:39:23 +00:00
convert_async = ["futures", "futures-core", "futures-util", "async-stream", "async_zip", "tokio"]
2023-08-05 20:06:55 +00:00
2022-11-10 18:43:15 +00:00
[dependencies]
2023-08-06 14:01:22 +00:00
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
zip = { version = "0.6", optional = true }
async_zip = { version = "0.0.15" , features = [
2023-08-06 14:01:22 +00:00
"zstd",
"tokio",
"tokio-fs",
], optional = true }
fmmap = { version = "0.3", features = ["tokio-async"], optional = true }
tokio = { version = "1", features = [
"fs",
"io-util",
"rt",
"macros",
], optional = true }
futures-core = { version = "0.3", optional = true }
futures = { version = "0.3", optional = true }
futures-util = { version = "0.3", optional = true }
async-compression = { version = "0.4.1", default-features = false, features = [
2023-08-06 14:01:22 +00:00
"zstd",
"tokio",
], optional = true }
async-stream = { version = "0.3", optional = true }
zstd = { version = "^0.12", default-features = false, optional = true }
memmap = { version = "0.7.0", optional = true }
2023-08-13 15:14:41 +00:00
pin-project = { version = "1.1.3", optional = true }
2023-08-23 18:39:23 +00:00
postcard = { version = "1.0.6", default-features = false, features = ["use-std"] }
2023-08-05 20:06:55 +00:00
2022-11-10 18:43:15 +00:00
[dev-dependencies]
2023-08-12 18:42:14 +00:00
insta = { version = "1.31.0", features = ["yaml"] }
2022-11-10 18:43:15 +00:00
tempfile = "3.3"