+ async source
(reader and converter)
This commit is contained in:
+46
-15
@@ -10,26 +10,57 @@ description = "Библиотека для доступа к файлу базы
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[features]
|
||||
default = ["async"]
|
||||
default = []
|
||||
sync = ["zstd", "memmap"]
|
||||
async = ["futures", "futures-core", "futures-util", "fmmap", "tokio", "async-compression", "async-stream"]
|
||||
async = [
|
||||
"futures",
|
||||
"futures-core",
|
||||
"futures-util",
|
||||
"fmmap",
|
||||
"tokio",
|
||||
"async-compression",
|
||||
"async-stream",
|
||||
]
|
||||
source = ["zip"]
|
||||
source_async = [
|
||||
"async_zip",
|
||||
"tokio",
|
||||
"futures",
|
||||
"futures-core",
|
||||
"futures-util",
|
||||
"async-stream",
|
||||
]
|
||||
convert = []
|
||||
convert_async = ["futures", "futures-core", "futures-util", "async-stream"]
|
||||
|
||||
[dependencies]
|
||||
serde="1.0"
|
||||
serde_derive="1.0"
|
||||
serde_json="1.0"
|
||||
serde = "1.0"
|
||||
serde_derive = "1.0"
|
||||
serde_json = "1.0"
|
||||
bincode = "^2.0.0-rc.2"
|
||||
zip= {version = "0.6", 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 = {git="https://github.com/Nullus157/async-compression", rev="4fd4c42", default-features = false, features = ["zstdmt", "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}
|
||||
zip = { version = "0.6", optional = true }
|
||||
async_zip = { git = "https://github.com/Majored/rs-async-zip", rev = "ff0d985", 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 = { git = "https://github.com/Nullus157/async-compression", rev = "4fd4c42", 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 }
|
||||
|
||||
|
||||
[dev-dependencies]
|
||||
|
||||
Reference in New Issue
Block a user