Skip to content

Commit

Permalink
Change the submodule upstream url
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Oct 16, 2024
1 parent ccd61c5 commit 99aac37
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
branch = mdb.master
[submodule "lmdb-master3-sys/lmdb"]
path = lmdb-master3-sys/lmdb
url = https://github.com/LMDB/lmdb.git
url = https://github.com/LMDB/lmdb
branch = mdb.master3
68 changes: 25 additions & 43 deletions heed/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,36 @@
[package]
name = "heed"
version = "0.20.5"
name = "heed3-encryption"
version = "0.20.5-beta.1"
authors = ["Kerollmops <[email protected]>"]
description = "A fully typed LMDB (mdb.master) wrapper with minimum overhead"
description = "A fully typed LMDB (mdb.master3) wrapper with minimum overhead with support for encryption"
license = "MIT"
repository = "https://github.com/Kerollmops/heed"
keywords = ["lmdb", "database", "storage", "typed"]
keywords = ["lmdb", "database", "storage", "typed", "encryption"]
categories = ["database", "data-structures"]
readme = "../README.md"
edition = "2021"

[dependencies]
# TODO update dependencies
aead = { version = "0.5.1", default-features = false }
bitflags = { version = "2.6.0", features = ["serde"] }
byteorder = { version = "1.5.0", default-features = false }
generic-array = { version = "0.14.6", features = ["serde"] }
heed-master3-proc-macro = { version = "0.1.0", path = "../heed-master3-proc-macro" }
heed-traits = { version = "0.20.0", path = "../heed-traits" }
heed-types = { version = "0.20.1", default-features = false, path = "../heed-types" }
libc = "0.2.155"
lmdb-master-sys = { version = "0.2.4", path = "../lmdb-master-sys" }
lmdb-master3-sys = { version = "0.2.4", path = "../lmdb-master3-sys" }
once_cell = "1.19.0"
page_size = "0.6.0"
serde = { version = "1.0.203", features = ["derive"], optional = true }
synchronoise = "1.0.1"

[dev-dependencies]
# TODO update dependencies
argon2 = { version = "0.4.1", features = ["std"] }
serde = { version = "1.0.203", features = ["derive"] }
chacha20poly1305 = "0.10.1"
tempfile = "3.10.1"

[target.'cfg(windows)'.dependencies]
Expand Down Expand Up @@ -68,7 +75,7 @@ unbounded_depth = ["heed-types/unbounded_depth"]
# There are tradeoffs for both POSIX and SysV semaphores; which you
# should look into before enabling this feature. Also, see here:
# <https://github.com/LMDB/lmdb/blob/3947014aed7ffe39a79991fa7fb5b234da47ad1a/libraries/liblmdb/lmdb.h#L46-L69>
posix-sem = ["lmdb-master-sys/posix-sem"]
posix-sem = ["lmdb-master3-sys/posix-sem"]

# These features configure the MDB_IDL_LOGN macro, which determines
# the size of the free and dirty page lists (and thus the amount of memory
Expand All @@ -80,15 +87,15 @@ posix-sem = ["lmdb-master-sys/posix-sem"]
#
# For more information on the motivation for these features (and their effect),
# see https://github.com/mozilla/lmdb/pull/2.
mdb_idl_logn_8 = ["lmdb-master-sys/mdb_idl_logn_8"]
mdb_idl_logn_9 = ["lmdb-master-sys/mdb_idl_logn_9"]
mdb_idl_logn_10 = ["lmdb-master-sys/mdb_idl_logn_10"]
mdb_idl_logn_11 = ["lmdb-master-sys/mdb_idl_logn_11"]
mdb_idl_logn_12 = ["lmdb-master-sys/mdb_idl_logn_12"]
mdb_idl_logn_13 = ["lmdb-master-sys/mdb_idl_logn_13"]
mdb_idl_logn_14 = ["lmdb-master-sys/mdb_idl_logn_14"]
mdb_idl_logn_15 = ["lmdb-master-sys/mdb_idl_logn_15"]
mdb_idl_logn_16 = ["lmdb-master-sys/mdb_idl_logn_16"]
mdb_idl_logn_8 = ["lmdb-master3-sys/mdb_idl_logn_8"]
mdb_idl_logn_9 = ["lmdb-master3-sys/mdb_idl_logn_9"]
mdb_idl_logn_10 = ["lmdb-master3-sys/mdb_idl_logn_10"]
mdb_idl_logn_11 = ["lmdb-master3-sys/mdb_idl_logn_11"]
mdb_idl_logn_12 = ["lmdb-master3-sys/mdb_idl_logn_12"]
mdb_idl_logn_13 = ["lmdb-master3-sys/mdb_idl_logn_13"]
mdb_idl_logn_14 = ["lmdb-master3-sys/mdb_idl_logn_14"]
mdb_idl_logn_15 = ["lmdb-master3-sys/mdb_idl_logn_15"]
mdb_idl_logn_16 = ["lmdb-master3-sys/mdb_idl_logn_16"]

# Setting this enables you to use keys longer than 511 bytes. The exact limit
# is computed by LMDB at compile time. You can find the exact value by calling
Expand All @@ -108,35 +115,10 @@ mdb_idl_logn_16 = ["lmdb-master-sys/mdb_idl_logn_16"]
# stored key must fit within the smallest limit of all architectures used. For
# example, if you are moving databases between Apple M1 and Apple Intel
# computers then you need to keep your keys within the smaller 1982 byte limit.
longer-keys = ["lmdb-master-sys/longer-keys"]
longer-keys = ["lmdb-master3-sys/longer-keys"]

# Examples are located outside the standard heed/examples directory to prevent
# conflicts between heed3 and heed examples when working on both crates.
[[example]]
name = "all-types"
path = "../examples/all-types.rs"

[[example]]
name = "clear-database"
path = "../examples/clear-database.rs"

[[example]]
name = "cursor-append"
path = "../examples/cursor-append.rs"

[[example]]
name = "custom-comparator"
path = "../examples/custom-comparator.rs"

[[example]]
name = "multi-env"
path = "../examples/multi-env.rs"

[[example]]
name = "nested"
path = "../examples/nested.rs"

[[example]]
name = "rmp-serde"
path = "../examples/rmp-serde.rs"
required-features = ["serde-rmp"]
name = "heed3-encryption"
path = "../examples/heed3-encryption.rs"

0 comments on commit 99aac37

Please sign in to comment.