-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9e4a99d
Showing
5 changed files
with
407 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
name = "hugepagedemo" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[profile.release-nativecpu] | ||
inherits = "release" | ||
debug = true | ||
# still unstable: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#profile-rustflags-option | ||
# this is defined for make run_native | ||
# TODO: Uncomment once stable | ||
#rustflags = ["-C", "target-cpu=native"] | ||
|
||
[dependencies] | ||
humanunits = {git="https://github.com/evanj/humanunits"} | ||
memory-stats = "1" | ||
nix = {version="0", features=["mman"]} | ||
rand = "0" | ||
rand_xoshiro = "0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
all: | ||
cargo fmt | ||
cargo test | ||
cargo check | ||
# https://zhauniarovich.com/post/2021/2021-09-pedantic-clippy/#paranoid-clippy | ||
# -D clippy::restriction is way too "safe"/careful | ||
# -D clippy::pedantic is also probably too safe | ||
cargo clippy --all-targets --all-features -- \ | ||
-D warnings \ | ||
-D clippy::nursery \ | ||
-D clippy::pedantic \ | ||
-A clippy::cast_precision_loss \ | ||
-A clippy::cast-sign-loss \ | ||
-A clippy::cast-possible-truncation | ||
|
||
run_native: | ||
RUSTFLAGS="-C target-cpu=native" cargo run --profile=release-nativecpu |
Oops, something went wrong.