Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add required features for examples
  • Loading branch information
joshtriplett committed Aug 22, 2025
commit 05fa593f9404c5d99d1cebfbef7cd35af9a9a60a
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ members = ["systest", "git2-curl"]

[package.metadata.docs.rs]
features = ["https", "ssh"]

[[examples]]
required-features = ["https", "ssh"]
Comment on lines +52 to +53
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This added invalid syntax to Cargo.toml. There is no such thing as examples.

warning: /Users/eric/Proj/rust/git2-rs/Cargo.toml: unused manifest key: examples

To set the required features, you have to list it for each individual example that needs it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.