Skip to content

Commit 2cfec8c

Browse files
authored
Fix: Crate type must to be "(rust)lib" to be imported by outher rust project (#57)
* turn rust crates into workspace * dual export * revert workspace
1 parent ef596df commit 2cfec8c

File tree

6 files changed

+5
-4
lines changed

6 files changed

+5
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ coverage.txt
3838
# misc
3939
sftp-config.json
4040
*~
41+
42+
target

libzstd/encoder-legacy/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66

77
[lib]
88
name = "encoder_legacy"
9-
crate-type = ["staticlib"]
9+
crate-type = ["staticlib", "lib"]
1010

1111
[dependencies]
1212
zstd = { git = "https://github.com/scroll-tech/zstd-rs", branch = "hack/mul-block", features = ["experimental"] }

libzstd/encoder-legacy/rust-toolchain

Lines changed: 0 additions & 1 deletion
This file was deleted.

libzstd/encoder-standard/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66

77
[lib]
88
name = "encoder_standard"
9-
crate-type = ["staticlib"]
9+
crate-type = ["staticlib", "lib"]
1010

1111
[dependencies]
1212
zstd = { version = "=0.13.3", features = ["experimental"] }

libzstd/encoder-standard/rust-toolchain

Lines changed: 0 additions & 1 deletion
This file was deleted.

rust-toolchain

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nightly-2025-02-14

0 commit comments

Comments
 (0)