Skip to content

Commit

Permalink
refactor(vrd): ✨ new examples and refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Dec 25, 2023
1 parent ea51f6c commit 9104547
Show file tree
Hide file tree
Showing 12 changed files with 633 additions and 180 deletions.
116 changes: 89 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 23 additions & 22 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
[package]
authors = ["Sebastien Rousseau <sebastian.rousseau@gmail.com>"]
authors = ["The vrd contributors <contact@vrdlib.one>"]
build = "build.rs"
categories = ['Algorithms', 'Encoding','Parser implementations','Data structures']
description = "A Rust library for generating random and pseudo-random numbers based on the Mersenne Twister algorithm"
documentation = "https://lib.rs/crates/vrd"
documentation = "https://docs.rs/vrd"
edition = "2021"
exclude = [
"/.git/*",
"/.github/*",
"/.gitignore",
"/.vscode/*"
]
]
homepage = "https://vrdlib.one"
keywords = ["entropy", "rand", "random-number", "random", "vrd"]
license = "MIT OR Apache-2.0"
name = "vrd"
readme = "README.md"
repository = "https://github.com/sebastienrousseau/vrd"
rust-version = "1.69.0"
version = "0.0.5"
include = [
"/CONTRIBUTING.md",
"/LICENSE-APACHE",
Expand All @@ -32,6 +25,13 @@ include = [
"/tests/**",
"/xtask/**",
]
keywords = ["entropy", "rand", "random-number", "random", "vrd"]
license = "MIT OR Apache-2.0"
name = "vrd"
readme = "README.md"
repository = "https://github.com/sebastienrousseau/vrd"
rust-version = "1.71.1"
version = "0.0.5"

[workspace]
members = ["xtask"]
Expand All @@ -46,10 +46,11 @@ debug = true

[dependencies]
rand = "0.8.5"
serde = { version = "1.0.193", features = ["derive"] }

[dev-dependencies]
assert_cmd = "2.0.11"
criterion = "0.4.0"
assert_cmd = "2.0.12"
criterion = "0.5.1"

[lib]
crate-type = ["lib"]
Expand All @@ -75,16 +76,16 @@ rpath = false
strip = false

[profile.release]
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
debug = false # Disable debug information
debug-assertions = false # Disable debug assertions
incremental = false # Disable incremental compilation
lto = true # Enables link to optimizations
opt-level = "s" # Optimize for binary size
overflow-checks = false # Disable overflow checks
panic = "abort" # Strip expensive panic clean-up logic
rpath = false # Disable rpath
strip = "symbols" # Automatically strip symbols from the binary.
codegen-units = 1
debug = false
debug-assertions = false
incremental = false
lto = true
opt-level = "s"
overflow-checks = false
panic = "abort"
rpath = false
strip = "symbols"

[profile.test]
codegen-units = 256
Expand Down
5 changes: 4 additions & 1 deletion benches/criterion.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Copyright © 2023 Random (VRD) library. All rights reserved.
// Copyright © 2023-2024 Random (VRD) library. All rights reserved.
// SPDX-License-Identifier: Apache-2.0 OR MIT
// This file is part of the `Random (VRD)` library, a Rust implementation of the Mersenne Twister RNG.
// See LICENSE-APACHE.md and LICENSE-MIT.md in the repository root for full license information.

//! Benchmarks using the `criterion` crate.
//!
//! This file contains benchmarks that use the `criterion` crate for performance testing.
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Random (VRD) library. All rights reserved.
// Copyright © 2023-2024 Random (VRD) library. All rights reserved.
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! This is the main function for the build script.
Expand Down
Loading

0 comments on commit 9104547

Please sign in to comment.