Skip to content

Commit

Permalink
Use PyO3 forward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdrozd committed Dec 21, 2024
1 parent 99f1335 commit 6025c01
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,23 @@ idris :

RUST_STUFF = tm/rust_stuff.so

CARGO = PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 cargo

rust :
cargo build --release
$(CARGO) build --release
cp target/release/librust_stuff.so $(RUST_STUFF)

dev :
cargo build
$(CARGO) build
cp target/debug/librust_stuff.so $(RUST_STUFF)

CARGO_VERSION = cargo --version

clippy :
$(CARGO_VERSION)
cargo clippy --all-targets
$(CARGO) clippy --all-targets

CARGO_TEST = cargo test
CARGO_TEST = $(CARGO) test

test-rust :
$(CARGO_VERSION)
Expand Down

0 comments on commit 6025c01

Please sign in to comment.