1
0
2 Publish using Cargo
Samuel FORESTIER edited this page 2024-07-27 15:38:18 +02:00

Set in $CARGO_HOME/config.toml :

[registries.githome]
index = "sparse+https://git.forestier.app/api/packages/{owner}/cargo/"

Set in $CARGO_HOME/credentials.toml :

[registries.githome]
token = "Bearer {token}"

Note to myself : cargo login --registry [...] doesn't declare token as Bearer, causing authentication failures against Gitea

Then run cargo publish --registry githome 🚀 📦