Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing wellen to a cargo workspace #17

Merged
merged 4 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
- nightly

steps:
- name: Update Rust to ${{ matrix.toolchain }}
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Update Rust to ${{ matrix.toolchain }}
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

semver:
name: Check Semantic Versioning
Expand All @@ -44,9 +44,9 @@ jobs:
with:
tool: cargo-msrv
- name: Check MSRV
working-directory: wellen
run: cargo msrv verify


examples:
name: Try Examples
runs-on: ubuntu-latest
Expand All @@ -64,7 +64,8 @@ jobs:
- name: Build
run: cargo build --verbose --examples --release
- name: load_signals
run: cargo run --release --example load_signals -- inputs/xilinx_isim/test1.vcd
working-directory: wellen
run: cargo run --release --example load_signals -- ../inputs/xilinx_isim/test1.vcd

serialization:
name: Test Serialization Feature ("serde1")
Expand Down
28 changes: 12 additions & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,27 @@
# released under BSD 3-Clause License
# author: Kevin Laeufer <[email protected]>

[package]
name = "wellen"
[workspace]
resolver = "2"
members = ["wellen"]
default-members = ["wellen"]

[workspace.package]
version = "0.9.10"
edition = "2021"
# we require the `div_ceil` method on integers
rust-version="1.73.0"
rust-version = "1.73.0"
authors = ["Kevin Laeufer <[email protected]>"]
description = "Fast VCD and FST library for waveform viewers written in Rust."
repository = "https://github.com/ekiwi/wellen"
license = "BSD-3-Clause"


include = ["Cargo.toml", "LICENSE", "src/", "benches/"]
keywords = ["vcd", "fst", "waveform", "wavedump"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
[workspace.dependencies]
bytesize = "1.3.0"
fst-native = "0.8.1"
leb128 = "0.2.5"
Expand All @@ -26,9 +31,9 @@ memmap2 = "0.9.0"
rayon = "1.8.0"
num_enum = "0.7.1"
thiserror = "1.0.56"
serde = { version = "1.0.197", features = ["derive"], optional = true }
serde = { version = "1.0.197", features = ["derive"] }

[dev-dependencies]
# dev dependencies
itertools = "0.12.1"
vcd = "0.7.0"
clap = { version = "4.4.6", features = ["derive"] }
Expand All @@ -38,12 +43,3 @@ proptest = "1.4.0"

[profile.release]
debug = true

[[bench]]
name = "wavemem"
harness = false

[features]
# makes internal functions public for benchmarking
benchmark = []
serde1 = ["dep:serde"]
42 changes: 42 additions & 0 deletions wellen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[package]
name = "wellen"
version.workspace = true
edition.workspace = true
rust-version = "1.73.0"
authors.workspace = true
description.workspace = true
repository.workspace = true
license.workspace = true
include.workspace = true
keywords.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bytesize = { workspace = true }
fst-native = { workspace = true }
leb128 = { workspace = true }
lz4_flex = { workspace = true }
memmap2 = { workspace = true }
rayon = { workspace = true }
num_enum = { workspace = true }
thiserror = { workspace = true }
serde = { workspace = true, optional = true }

[dev-dependencies]
itertools = { workspace = true }
vcd = { workspace = true }
clap = { workspace = true }
criterion = { workspace = true }
indicatif = { workspace = true }
proptest = { workspace = true }


[[bench]]
name = "wavemem"
harness = false

[features]
# makes internal functions public for benchmarking
benchmark = []
serde1 = ["dep:serde"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.