-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cargo: explicitly indicate paths to publish
Running `cargo publish` from a non-colocated repo (such as my usual repo) is currently quite scary because it uploads all non-hidden files, even if they're ignored by `.gitignore` (rust-lang/cargo#2063). I noticed this a while ago and have always run the command from a fresh clone since then. To avoid the need for that, let's use the workaround mentioned on the bug, which is to explicitly list patterns we want to publish.
- Loading branch information
1 parent
955c9bf
commit 8ce0994
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,18 @@ repository = { workspace = true } | |
documentation = { workspace = true } | ||
keywords = { workspace = true } | ||
|
||
include = [ | ||
"/LICENSE", | ||
"/build.rs", | ||
"/examples/", | ||
"/src/", | ||
"/testing/", | ||
"/tests/", | ||
"!*.pending-snap", | ||
"!*.snap*", | ||
"/tests/[email protected]" | ||
] | ||
|
||
[[bin]] | ||
name = "jj" | ||
path = "src/main.rs" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters