Skip to content

Commit 6395a21

Browse files
committed
fix: use registry piscem-rs in CI and document local patch
1 parent 541d8f0 commit 6395a21

5 files changed

Lines changed: 14 additions & 7 deletions

File tree

.cargo/config.local.example.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[patch.crates-io]
2+
piscem-rs = { path = "../piscem-rs" }

.cargo/config.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
[build]
33
# By default, we want maximum performance rather than portability.
44
rustflags = ["-C", "target-cpu=native"]
5+
6+
# Dev-only crate overrides should live in `.cargo/config.local.toml`
7+
# and be passed explicitly, for example:
8+
# cargo check --config .cargo/config.local.toml

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ Cargo.lock
1010
**/*.rs.bk
1111

1212
# Local cargo config (contains dev-only [patch] overrides)
13-
# .cargo/config.toml
13+
.cargo/config.local.toml
1414
radtk/
1515
gencode_v49/
1616
gencode_v49_new/
1717
piscem-cpp/
1818
sshash/
1919
sample_quant_new/
2020
sample_quant/
21-

Cargo.lock

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ categories = ["command-line-utilities", "science"]
1717
toml = "0.8"
1818

1919
[dependencies]
20-
piscem-rs = { path = "../piscem-rs", version = "0.2.1" }
20+
piscem-rs = "0.2.1"
2121
cf1-rs = "0.3.1"
2222
num_cpus = "1.17.0"
2323
anyhow = "1.0.102"

0 commit comments

Comments
 (0)