-
Notifications
You must be signed in to change notification settings - Fork 22
Fix: Crate type must to be "(rust)lib" to be imported by outher rust project #57
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
Conversation
WalkthroughThe updates adjust Rust toolchain configuration and crate output settings. A new top-level Changes
Suggested reviewers
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
rust-toolchain (1)
1-2: Optional: switch to TOML-style toolchain manifest to add toolsThe single-line form works, but using the TOML format lets you pin extra components (e.g.
clippy,rustfmt) and future-proofs the file:-nightly-2025-02-14 +[toolchain] +channel = "nightly-2025-02-14" +components = ["clippy", "rustfmt"]No action required if you don’t need the extras.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (6)
.gitignore(1 hunks)libzstd/encoder-legacy/Cargo.toml(1 hunks)libzstd/encoder-legacy/rust-toolchain(0 hunks)libzstd/encoder-standard/Cargo.toml(1 hunks)libzstd/encoder-standard/rust-toolchain(0 hunks)rust-toolchain(1 hunks)
💤 Files with no reviewable changes (2)
- libzstd/encoder-legacy/rust-toolchain
- libzstd/encoder-standard/rust-toolchain
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: check
- GitHub Check: tests
🔇 Additional comments (3)
.gitignore (1)
41-42:targetnow ignored – sensible default for Rust projectsIgnoring the Rust
targetdirectory keeps build artifacts out of VCS and reduces repo bloat.libzstd/encoder-legacy/Cargo.toml (1)
8-10:libcrate type added – unblocks downstream Rust dependenciesPreviously the crate exported only a
staticlib, preventing it from being used as a normal Rust dependency. Adding"lib"alongside"staticlib"fixes this without breaking the static use-case.libzstd/encoder-standard/Cargo.toml (1)
8-10: Mirrors legacy encoder change – now builds bothstaticlibandlibConsistent with the legacy crate and necessary for Rust consumers. Looks good.
We must also set the
create-typeto both "staticlib" and "lib" (cargo enable to build multiple lib types by one-fly now). "lib" enable other rust crate to depend on this crate.Summary by CodeRabbit
targetdirectory or file.