[package] name = "chgk_ledb_lib" version = "1.2.0" authors = ["Dmitry "] edition = "2021" repository = "https://gitea.b4tman.ru/b4tman/chgk_ledb" license = "MIT" description = "Библиотека для доступа к файлу базы данных вопросов ЧГК" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] default = [] sync = ["zstd", "memmap"] async = [ "futures", "futures-core", "futures-util", "fmmap", "tokio", "async-compression", "async-stream", "pin-project", ] source = ["zip"] source_async = [ "async_zip", "tokio", "futures", "futures-core", "futures-util", "async-stream", ] convert = ["zip"] convert_async = [ "futures", "futures-core", "futures-util", "async-stream", "async_zip", "tokio", ] [dependencies] serde = "1.0" serde_derive = "1.0" serde_json = "1.0" bincode = "^2.0.0-rc.2" zip = { version = "0.6", optional = true } async_zip = { version = "0.0.15" , features = [ "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 = [ "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 } pin-project = { version = "1.1.3", optional = true } [dev-dependencies] insta = { version = "1.31.0", features = ["yaml"] } tempfile = "3.3"