Skip to content

Commit

Permalink
Merge pull request #42 from simd-lite/trait-improvements
Browse files Browse the repository at this point in the history
Simplify generators, add portable simd and runtime detection
  • Loading branch information
Licenser authored Oct 23, 2023
2 parents c810712 + f7170ef commit 97915ee
Show file tree
Hide file tree
Showing 7 changed files with 477 additions and 359 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: "1.61.0"
toolchain: "1.64.0"
override: true
components: clippy, rustfmt
- name: Validate cargo format
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: "1.61.0"
toolchain: "1.64.0"
override: true
components: llvm-tools-preview
- name: Install cargo-llcm-cov
Expand Down
11 changes: 7 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description = "Traits to deal with JSONesque values"
repository = "https://github.com/simd-lite/value-trait"
readme = "README.md"
documentation = "https://docs.rs/value-trait"
rust-version = "1.61"
rust-version = "1.64"


[dependencies]
Expand All @@ -20,7 +20,7 @@ hashbrown = { version = "0.14", optional = true }
abi_stable = { version = "0.11.0", optional = true, default-features = false }

[features]
default = ["custom-types", "halfbrown"]
default = ["custom-types", "halfbrown", "runtime-detection"]
# Support for 128 bit integers
128bit = []

Expand All @@ -30,5 +30,8 @@ custom-types = []
# Support for abi-stable's `StableAbi` implementation
c-abi = ["abi_stable"]

# Allow fallback to non simd CPUs
allow-non-simd = []
# use runtime detection of the CPU features where possible instead of enforcing an instruction set
runtime-detection = []

# portable simd support (as of rust 1.73 nightly only)
portable = []
Loading

0 comments on commit 97915ee

Please sign in to comment.