mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
The `page_size` crate is a simple libc wrapper for Unix and uses `winapi-rs` for Windows. `windows-sys` and `windows-rs` are the modern alternatives for the unmaintained `winapi-rs`. Both crates are maintained by Microsoft - they're official. Getting the page size is a simple call for both Unix and Windows. Besides Unix and Windows, I also added the page size for wasm32 which the `page_size` crate did not support. `wasm32`'s page size is a constant that is defined by the spec, so I hard coded it without adding additional dependencies. Finally, I dropped `maplit` which is seven years old and only used in one place. Calling `collect()` with a single item iterator is idiomatic as well as better in this case because Rust can optimize it. `maplit` called `HashMap::insert` which over allocates to amortize future allocs.
26 lines
725 B
TOML
26 lines
725 B
TOML
[package]
|
|
name = "rustpython-derive-impl"
|
|
description = "Rust language extensions and macros specific to rustpython."
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
rustpython-compiler-core = { workspace = true }
|
|
# rustpython-parser-core = { workspace = true }
|
|
rustpython-doc = { workspace = true }
|
|
|
|
itertools = { workspace = true }
|
|
syn = { workspace = true, features = ["full", "extra-traits"] }
|
|
|
|
proc-macro2 = { workspace = true }
|
|
quote = { workspace = true }
|
|
syn-ext = { workspace = true, features = ["full"] }
|
|
textwrap = { workspace = true, default-features = false }
|
|
|
|
[lints]
|
|
workspace = true
|