generated from al8n/template-rs
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCargo.toml
115 lines (98 loc) · 3.66 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[package]
name = "skl"
version = "0.22.16"
edition = "2021"
rust-version = "1.81.0"
repository = "https://github.com/al8n/skl"
description = "A lock-free thread-safe concurrent ARENA based (heap backend or memory map backend) skiplist implementation which helps develop MVCC memtable for LSM-Tree."
documentation = "https://docs.rs/skl"
homepage = "https://github.com/al8n/skl"
keywords = ["skiplist", "lock-free", "memtable", "crossbeam-skiplist", "arena"]
categories = ["database", "data-structures", "concurrency", "no-std"]
license = "MIT OR Apache-2.0"
[[bench]]
path = "benches/bench.rs"
name = "bench"
harness = false
[[example]]
name = "heap"
path = "examples/heap.rs"
[[example]]
name = "mmap"
path = "examples/mmap.rs"
required-features = ["memmap"]
[[example]]
name = "mmap-anon"
path = "examples/mmap_anon.rs"
required-features = ["memmap"]
[[example]]
name = "multiple_maps"
path = "examples/multiple_maps.rs"
required-features = ["memmap"]
[features]
default = ["std"]
alloc = ["rarena-allocator/alloc", "dbutils/alloc"]
memmap = ["rarena-allocator/memmap", "std"]
std = ["rand/default", "either/default", "dbutils/default", "rarena-allocator/std", "memchr?/default", "among/default"]
tracing = ["dep:tracing", "rarena-allocator/tracing"]
experimental = ["memchr"]
[target.'cfg(target_family = "wasm")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }
[dependencies]
among = { version = "0.1", default-features = false, features = ["either"] }
arbitrary-int = { version = "1.2", default-features = false }
bitflags = "2"
dbutils = { version = "0.12", default-features = false }
# dbutils = { version = "0.12", path = "../layer0/dbutils", default-features = false }
either = { version = "1", default-features = false }
memchr = { version = "2", default-features = false, optional = true }
rand = { version = "0.8", default-features = false, features = ["getrandom"] }
# rarena-allocator = { version = "0.4", default-features = false, path = "../arena/rarena-allocator" }
rarena-allocator = { version = "0.4", default-features = false }
viewit = "0.1.5"
paste = "1"
tracing = { version = "0.1", optional = true }
[dev-dependencies]
criterion = "0.5"
tempfile = "3"
parking_lot = "0.12"
[profile.bench]
opt-level = 3
debug = false
codegen-units = 1
lto = 'thin'
incremental = false
debug-assertions = false
overflow-checks = false
rpath = false
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[workspace]
members = ["integration"]
[lints.rust]
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(all_skl_tests)',
'cfg(test_generic_unsync_versioned)',
'cfg(test_generic_unsync_map)',
'cfg(test_generic_sync_versioned)',
'cfg(test_generic_sync_map)',
'cfg(test_generic_sync_multiple_version_concurrent)',
'cfg(test_generic_sync_map_concurrent)',
'cfg(test_generic_sync_multiple_version_concurrent_with_optimistic_freelist)',
'cfg(test_generic_sync_map_concurrent_with_optimistic_freelist)',
'cfg(test_generic_sync_multiple_version_concurrent_with_pessimistic_freelist)',
'cfg(test_generic_sync_map_concurrent_with_pessimistic_freelist)',
'cfg(test_dynamic_unsync_versioned)',
'cfg(test_dynamic_unsync_map)',
'cfg(test_dynamic_sync_versioned)',
'cfg(test_dynamic_sync_map)',
'cfg(test_dynamic_sync_multiple_version_concurrent)',
'cfg(test_dynamic_sync_map_concurrent)',
'cfg(test_dynamic_sync_multiple_version_concurrent_with_optimistic_freelist)',
'cfg(test_dynamic_sync_map_concurrent_with_optimistic_freelist)',
'cfg(test_dynamic_sync_multiple_version_concurrent_with_pessimistic_freelist)',
'cfg(test_dynamic_sync_map_concurrent_with_pessimistic_freelist)',
] }