Skip to content

Commit d4f001f

Browse files
killme2008youknowone
authored andcommitted
Basic mmap module
1 parent cc4583e commit d4f001f

File tree

7 files changed

+366
-46
lines changed

7 files changed

+366
-46
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ rustpython-stdlib = {path = "stdlib", optional = true, default-features = false,
4141
dirs = { package = "dirs-next", version = "2.0.0" }
4242
num-traits = "0.2.14"
4343
cfg-if = "1.0.0"
44-
libc = "0.2.123"
44+
libc = "0.2.126"
4545

4646
flame = { version = "0.2.2", optional = true }
4747
flamescope = { version = "0.1.2", optional = true }

common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ siphasher = "0.3"
2121
rand = "0.8"
2222
volatile = "0.3"
2323
radium = "0.7"
24-
libc = "0.2.101"
24+
libc = "0.2.126"
2525
ascii = "1.0"
2626
unic-ucd-category = "0.9"
2727

stdlib/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,17 @@ hex = "0.4.3"
5757
puruspe = "0.1.5"
5858
nix = "0.23.1"
5959
xml-rs = "0.8.4"
60-
libc = "0.2.123"
60+
libc = "0.2.126"
6161
cfg-if = "1.0.0"
6262
ahash = "0.7.6"
6363
libz-sys = { version = "1.1.5", optional = true }
6464
num_enum = "0.5.7"
6565
ascii = "1.0.0"
66-
memmap2 = "0.5.0"
67-
page_size = "0.4.2"
66+
67+
# mmap
68+
[target.'cfg(all(unix, not(target_arch = "wasm32")))'.dependencies]
69+
memmap2 = "0.5.4"
70+
page_size = "0.4"
6871

6972
[target.'cfg(all(unix, not(target_os = "redox")))'.dependencies]
7073
termios = "0.3.3"

0 commit comments

Comments
 (0)