1
1
[package ]
2
- name = " heed "
3
- version = " 0.20.5"
2
+ name = " heed3-encryption "
3
+ version = " 0.20.5-beta.1 "
4
4
authors = [
" Kerollmops <[email protected] >" ]
5
- description = " A fully typed LMDB (mdb.master ) wrapper with minimum overhead"
5
+ description = " A fully typed LMDB (mdb.master3 ) wrapper with minimum overhead with support for encryption "
6
6
license = " MIT"
7
7
repository = " https://github.com/Kerollmops/heed"
8
- keywords = [" lmdb" , " database" , " storage" , " typed" ]
8
+ keywords = [" lmdb" , " database" , " storage" , " typed" , " encryption " ]
9
9
categories = [" database" , " data-structures" ]
10
10
readme = " ../README.md"
11
11
edition = " 2021"
12
12
13
13
[dependencies ]
14
+ # TODO update dependencies
15
+ aead = { version = " 0.5.1" , default-features = false }
14
16
bitflags = { version = " 2.6.0" , features = [" serde" ] }
15
17
byteorder = { version = " 1.5.0" , default-features = false }
18
+ generic-array = { version = " 0.14.6" , features = [" serde" ] }
19
+ heed-master3-proc-macro = { version = " 0.1.0" , path = " ../heed-master3-proc-macro" }
16
20
heed-traits = { version = " 0.20.0" , path = " ../heed-traits" }
17
21
heed-types = { version = " 0.20.1" , default-features = false , path = " ../heed-types" }
18
22
libc = " 0.2.155"
19
- lmdb-master -sys = { version = " 0.2.4" , path = " ../lmdb-master -sys" }
23
+ lmdb-master3 -sys = { version = " 0.2.4" , path = " ../lmdb-master3 -sys" }
20
24
once_cell = " 1.19.0"
21
25
page_size = " 0.6.0"
22
26
serde = { version = " 1.0.203" , features = [" derive" ], optional = true }
23
27
synchronoise = " 1.0.1"
24
28
25
29
[dev-dependencies ]
30
+ # TODO update dependencies
31
+ argon2 = { version = " 0.4.1" , features = [" std" ] }
26
32
serde = { version = " 1.0.203" , features = [" derive" ] }
33
+ chacha20poly1305 = " 0.10.1"
27
34
tempfile = " 3.10.1"
28
35
29
36
[target .'cfg(windows)' .dependencies ]
@@ -68,7 +75,7 @@ unbounded_depth = ["heed-types/unbounded_depth"]
68
75
# There are tradeoffs for both POSIX and SysV semaphores; which you
69
76
# should look into before enabling this feature. Also, see here:
70
77
# <https://github.com/LMDB/lmdb/blob/3947014aed7ffe39a79991fa7fb5b234da47ad1a/libraries/liblmdb/lmdb.h#L46-L69>
71
- posix-sem = [" lmdb-master -sys/posix-sem" ]
78
+ posix-sem = [" lmdb-master3 -sys/posix-sem" ]
72
79
73
80
# These features configure the MDB_IDL_LOGN macro, which determines
74
81
# the size of the free and dirty page lists (and thus the amount of memory
@@ -80,15 +87,15 @@ posix-sem = ["lmdb-master-sys/posix-sem"]
80
87
#
81
88
# For more information on the motivation for these features (and their effect),
82
89
# see https://github.com/mozilla/lmdb/pull/2.
83
- mdb_idl_logn_8 = [" lmdb-master -sys/mdb_idl_logn_8" ]
84
- mdb_idl_logn_9 = [" lmdb-master -sys/mdb_idl_logn_9" ]
85
- mdb_idl_logn_10 = [" lmdb-master -sys/mdb_idl_logn_10" ]
86
- mdb_idl_logn_11 = [" lmdb-master -sys/mdb_idl_logn_11" ]
87
- mdb_idl_logn_12 = [" lmdb-master -sys/mdb_idl_logn_12" ]
88
- mdb_idl_logn_13 = [" lmdb-master -sys/mdb_idl_logn_13" ]
89
- mdb_idl_logn_14 = [" lmdb-master -sys/mdb_idl_logn_14" ]
90
- mdb_idl_logn_15 = [" lmdb-master -sys/mdb_idl_logn_15" ]
91
- mdb_idl_logn_16 = [" lmdb-master -sys/mdb_idl_logn_16" ]
90
+ mdb_idl_logn_8 = [" lmdb-master3 -sys/mdb_idl_logn_8" ]
91
+ mdb_idl_logn_9 = [" lmdb-master3 -sys/mdb_idl_logn_9" ]
92
+ mdb_idl_logn_10 = [" lmdb-master3 -sys/mdb_idl_logn_10" ]
93
+ mdb_idl_logn_11 = [" lmdb-master3 -sys/mdb_idl_logn_11" ]
94
+ mdb_idl_logn_12 = [" lmdb-master3 -sys/mdb_idl_logn_12" ]
95
+ mdb_idl_logn_13 = [" lmdb-master3 -sys/mdb_idl_logn_13" ]
96
+ mdb_idl_logn_14 = [" lmdb-master3 -sys/mdb_idl_logn_14" ]
97
+ mdb_idl_logn_15 = [" lmdb-master3 -sys/mdb_idl_logn_15" ]
98
+ mdb_idl_logn_16 = [" lmdb-master3 -sys/mdb_idl_logn_16" ]
92
99
93
100
# Setting this enables you to use keys longer than 511 bytes. The exact limit
94
101
# is computed by LMDB at compile time. You can find the exact value by calling
@@ -108,35 +115,10 @@ mdb_idl_logn_16 = ["lmdb-master-sys/mdb_idl_logn_16"]
108
115
# stored key must fit within the smallest limit of all architectures used. For
109
116
# example, if you are moving databases between Apple M1 and Apple Intel
110
117
# computers then you need to keep your keys within the smaller 1982 byte limit.
111
- longer-keys = [" lmdb-master -sys/longer-keys" ]
118
+ longer-keys = [" lmdb-master3 -sys/longer-keys" ]
112
119
113
120
# Examples are located outside the standard heed/examples directory to prevent
114
121
# conflicts between heed3 and heed examples when working on both crates.
115
122
[[example ]]
116
- name = " all-types"
117
- path = " ../examples/all-types.rs"
118
-
119
- [[example ]]
120
- name = " clear-database"
121
- path = " ../examples/clear-database.rs"
122
-
123
- [[example ]]
124
- name = " cursor-append"
125
- path = " ../examples/cursor-append.rs"
126
-
127
- [[example ]]
128
- name = " custom-comparator"
129
- path = " ../examples/custom-comparator.rs"
130
-
131
- [[example ]]
132
- name = " multi-env"
133
- path = " ../examples/multi-env.rs"
134
-
135
- [[example ]]
136
- name = " nested"
137
- path = " ../examples/nested.rs"
138
-
139
- [[example ]]
140
- name = " rmp-serde"
141
- path = " ../examples/rmp-serde.rs"
142
- required-features = [" serde-rmp" ]
123
+ name = " heed3-encryption"
124
+ path = " ../examples/heed3-encryption.rs"
0 commit comments