Skip to content

Commit

Permalink
Update rust component to 2024 edition (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles authored Feb 21, 2025
1 parent ef885e4 commit afef399
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:

- name: Install artistools
run: |
rustup update stable
uv sync --frozen
source .venv/bin/activate
uv pip install --compile-bytecode --editable .[dev]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:

- name: Install artistools
run: |
rustup update stable
uv sync --frozen
source .venv/bin/activate
uv pip install --compile-bytecode --editable .[dev]
Expand Down Expand Up @@ -167,6 +168,7 @@ jobs:

- name: Install artistools (no dev deps)
run: |
rustup update stable
uv sync --frozen --no-dev
uv pip install .
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ repair-wheel-command = [
]

[tool.cibuildwheel.macos]
before-all = [
"rustup update stable",
]
repair-wheel-command = [
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}",
"uv pip install abi3audit",
Expand Down Expand Up @@ -395,6 +398,5 @@ local_scheme = "no-local-version"

[tool.vulture]
exclude = [".*", "build/", ".eggs/"]
#ignore_names = ["visit_*", "do_*"]
paths = ["artistools"]
sort_by_size = true
2 changes: 1 addition & 1 deletion rust/Cargo.lock

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

16 changes: 14 additions & 2 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "artistools-rust"
version = "0.20250117.0"
version = "0.20250222.0"
authors = ["Luke Shingles <[email protected]>"]
edition = "2021"
edition = "2024"

[lib]
name = "rustext"
Expand All @@ -14,3 +14,15 @@ polars = { version = "0.46", features = ["diagonal_concat", "performant"] }
pyo3 = { version = "0.23", features = ["abi3-py310"] }
pyo3-polars = { version = "0.20.0", features = ["dtype-struct"] }
rayon = "1.10"

[profile.dev]
opt-level = 3
debug = "full"
#lto = "thin"

[profile.release]
#codegen-units = 1
debug = "none"
opt-level = 3
overflow-checks = false
#lto = "fat"

0 comments on commit afef399

Please sign in to comment.