11[package ]
2- name = " heed "
3- version = " 0.20.5"
2+ name = " heed3-encryption "
3+ version = " 0.20.5-beta.1 "
44authors = [
" 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 "
66license = " MIT"
77repository = " https://github.com/Kerollmops/heed"
8- keywords = [" lmdb" , " database" , " storage" , " typed" ]
8+ keywords = [" lmdb" , " database" , " storage" , " typed" , " encryption " ]
99categories = [" database" , " data-structures" ]
1010readme = " ../README.md"
1111edition = " 2021"
1212
1313[dependencies ]
14+ # TODO update dependencies
15+ aead = { version = " 0.5.1" , default-features = false }
1416bitflags = { version = " 2.6.0" , features = [" serde" ] }
1517byteorder = { 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" }
1620heed-traits = { version = " 0.20.0" , path = " ../heed-traits" }
1721heed-types = { version = " 0.20.1" , default-features = false , path = " ../heed-types" }
1822libc = " 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" }
2024once_cell = " 1.19.0"
2125page_size = " 0.6.0"
2226serde = { version = " 1.0.203" , features = [" derive" ], optional = true }
2327synchronoise = " 1.0.1"
2428
2529[dev-dependencies ]
30+ # TODO update dependencies
31+ argon2 = { version = " 0.4.1" , features = [" std" ] }
2632serde = { version = " 1.0.203" , features = [" derive" ] }
33+ chacha20poly1305 = " 0.10.1"
2734tempfile = " 3.10.1"
2835
2936[target .'cfg(windows)' .dependencies ]
@@ -68,7 +75,7 @@ unbounded_depth = ["heed-types/unbounded_depth"]
6875# There are tradeoffs for both POSIX and SysV semaphores; which you
6976# should look into before enabling this feature. Also, see here:
7077# <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" ]
7279
7380# These features configure the MDB_IDL_LOGN macro, which determines
7481# 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"]
8087#
8188# For more information on the motivation for these features (and their effect),
8289# 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" ]
9299
93100# Setting this enables you to use keys longer than 511 bytes. The exact limit
94101# 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"]
108115# stored key must fit within the smallest limit of all architectures used. For
109116# example, if you are moving databases between Apple M1 and Apple Intel
110117# 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" ]
112119
113120# Examples are located outside the standard heed/examples directory to prevent
114121# conflicts between heed3 and heed examples when working on both crates.
115122[[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