Skip to content

Add opt-in generic traits for generated SoA types #73

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

Merged
merged 37 commits into from
Mar 19, 2025
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
7841e87
feat: add traits for sequence-like behaviors already implemented as c…
mobiusklein Jan 10, 2025
ff43c47
remove dead code
mobiusklein Jan 10, 2025
a96d8ff
checkpoint
mobiusklein Jan 10, 2025
a82e41f
Switch to lifetime-bound traits not directly attached to `StructOfArr…
mobiusklein Jan 10, 2025
38029d9
checkpoint two lifetimes
mobiusklein Jan 10, 2025
b69298e
Fix most of the lifetime mess, polish interface, add documentation
mobiusklein Jan 11, 2025
d679b90
checkpoint
mobiusklein Jan 12, 2025
4566a50
checkpoint
mobiusklein Jan 12, 2025
0e0348d
checkpoint: rewrite
mobiusklein Jan 12, 2025
9ba2358
checkpoint
mobiusklein Jan 14, 2025
3c21049
unbundle traits
mobiusklein Jan 16, 2025
aab3848
checkpoint
mobiusklein Jan 16, 2025
0fc43d5
restructure crate for features
mobiusklein Jan 16, 2025
5f3e766
guard traits
mobiusklein Jan 16, 2025
498d5de
manage dead code warnings
mobiusklein Jan 16, 2025
f752525
docs
mobiusklein Jan 16, 2025
ad073f7
Remove commented out impl
mobiusklein Jan 16, 2025
3cc69fd
remove traits from example
mobiusklein Jan 16, 2025
8db660b
exclude doctest
mobiusklein Jan 16, 2025
3aecfd0
add supporting traits for `to_vec` and `into_iter`
mobiusklein Jan 18, 2025
f200fa0
undo bundling, introduces problematic lifetime net
mobiusklein Jan 18, 2025
8fdcb3a
feature: add `soa_crate` type-level attribute for vendoring
mobiusklein Jan 27, 2025
a95fce8
chore: slightly better error message
mobiusklein Jan 27, 2025
dec18c9
checkpoint
mobiusklein Feb 2, 2025
9daab55
restore original layout
mobiusklein Feb 2, 2025
c4989b5
Squashed commit of the following:
mobiusklein Feb 2, 2025
cac64ac
remove feature flag
mobiusklein Feb 2, 2025
1c3f227
commence CI-based version search
mobiusklein Feb 2, 2025
1f18602
update version range
mobiusklein Feb 2, 2025
7ae3b44
min version found
mobiusklein Feb 2, 2025
221e26e
minimum version found
mobiusklein Feb 2, 2025
511787d
Update soa-derive-internal/src/lib.rs
mobiusklein Feb 25, 2025
ae7ce4c
Update example/Cargo.toml
mobiusklein Feb 25, 2025
333d233
Apply suggestions from code review
mobiusklein Feb 26, 2025
461ba24
Apply more suggestions from code review, update documentation
mobiusklein Feb 26, 2025
7dccb57
Apply more suggestions from code review
mobiusklein Mar 5, 2025
ee3f77e
remove the prelude and alluded to in the review
mobiusklein Mar 18, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
rust-version: ["1.63", stable, beta, nightly]
rust-version: ["1.78", stable, beta, nightly]
steps:
- uses: actions/checkout@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Cargo.lock
target
rust-toolchain.toml
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "soa_derive"
version = "0.13.0"
edition = "2018"
rust-version = "1.63"
rust-version = "1.78"

authors = ["Guillaume Fraux <[email protected]>"]
license = "MIT/Apache-2.0"
Expand Down Expand Up @@ -30,4 +30,4 @@ serde_json = "1"

[[bench]]
name = "soa"
harness = false
harness = false
2 changes: 1 addition & 1 deletion example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ publish = false
edition = "2021"

[dependencies]
soa_derive = {path = ".."}
soa_derive = { path = "..", features = []}

[lib]
path = "lib.rs"
2 changes: 2 additions & 0 deletions soa-derive-internal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ documentation = "https://docs.rs/soa_derive/"
[lib]
proc-macro = true

[features]

[dependencies]
syn = {version = "2", features = ["derive", "extra-traits"]}
quote = "1"
Expand Down
Loading