Add Map type, add hashbrown crate dependency
We should have a preliminary implementation of maps going right now. Thus far we have: * Map.insert * Map.__index__ * Map.remove And some other minor functions. The big news with this is the couple of pretty hot `unsafe` calls that borrow the VM mutably in two different closures, simultaneously. This should be safe since these two different closures aren't being called at the same time, somehow. Maybe one could be calling the other. But that's not happening (I checked). This also adds the hashbrown crate to handle the actual hashtable implementation, so we don't have to implement our own hashtables. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
30
Cargo.lock
generated
30
Cargo.lock
generated
@@ -2,6 +2,12 @@
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "allocator-api2"
|
||||
version = "0.2.18"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f"
|
||||
|
||||
[[package]]
|
||||
name = "anstream"
|
||||
version = "0.6.15"
|
||||
@@ -109,6 +115,18 @@ version = "0.1.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f3f6d59c71e7dc3af60f0af9db32364d96a16e9310f3f5db2b55ed642162dd35"
|
||||
|
||||
[[package]]
|
||||
name = "equivalent"
|
||||
version = "1.0.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
|
||||
|
||||
[[package]]
|
||||
name = "foldhash"
|
||||
version = "0.1.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f81ec6369c545a7d40e4589b5597581fa1c441fe1cce96dd1de43159910a36a2"
|
||||
|
||||
[[package]]
|
||||
name = "gc"
|
||||
version = "0.5.0"
|
||||
@@ -130,6 +148,17 @@ dependencies = [
|
||||
"synstructure",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "hashbrown"
|
||||
version = "0.15.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1e087f84d4f86bf4b218b927129862374b72199ae7d8657835f1e89000eea4fb"
|
||||
dependencies = [
|
||||
"allocator-api2",
|
||||
"equivalent",
|
||||
"foldhash",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "heck"
|
||||
version = "0.5.0"
|
||||
@@ -150,6 +179,7 @@ dependencies = [
|
||||
"clap",
|
||||
"common_macros",
|
||||
"gc",
|
||||
"hashbrown",
|
||||
"thiserror",
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user