forked from cargo-prebuilt/index
-
Notifications
You must be signed in to change notification settings - Fork 0
Adding a crate
harmless-tech edited this page Aug 21, 2023
·
9 revisions
This requires knowledge of how to use git and GitHub.
- Clone your index.
git clone URL
- Create a branch.
git checkout -b NAME
- Copy the
_crate.toml.tmpl
file undercrates
and make a new file called$CRATE.toml
also undercrates
. (You can name the toml file anything, but it must end with .toml) - Fill out the info needed and delete any target flags you do not need. (See CRATES for examples)
- Under
pr/_allowlist
add the crate id. This will allow github actions to test that crate. - Add
- [$CRATE]($GIT_URL)
to the README. - Push and then open a pull request on that branch. This will run the build process.
- Fix any build problems then merge the pull request.
- The action to build the crate should now run and put it under the tag/release
$CRATE-$VERSION
. - To download the crate with cargo-prebuilt run
cargo prebuilt --index=gh-pub:github.com/$USER/$REPO $CRATE
.