Skip to content
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

Publish crate for CLI on crates.io #629

Open
jnioche opened this issue Dec 7, 2024 · 4 comments
Open

Publish crate for CLI on crates.io #629

jnioche opened this issue Dec 7, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@jnioche
Copy link
Collaborator

jnioche commented Dec 7, 2024

Problem

This would make it possible for user to install cloud scanner with

cargo install cloud-scanner-cli

Solution

See instructions on https://doc.rust-lang.org/cargo/reference/publishing.html

@jnioche
Copy link
Collaborator Author

jnioche commented Dec 19, 2024

Related to #378

@jnioche
Copy link
Collaborator Author

jnioche commented Dec 20, 2024

This requires having an account on crates.io which you do by logging in via a GH account. I already have an account there, shall we use it, or yours @demeringo or a generic one?

@demeringo
Copy link
Collaborator

demeringo commented Dec 20, 2024

I was also looking into this regarding the api sdk for rust.
Boavizta/boaviztapi-sdk-rust#19

It seems we can declare multiple individual owners, and publish as a git organization team.

https://users.rust-lang.org/t/publish-to-crates-io-as-a-github-org/50684/4

We need to first publish as an individual (I suggest you use your account if you do it, it will make thing probably simpler).
Then add owners: https://doc.rust-lang.org/cargo/commands/cargo-owner.html

But i did not test it yet ;-) .

I suggest

If you wish, you could also add your name/email in the cargo.toml.

authors = ["boavizta.org", "Olivier de Meringo <[email protected]>"]

@demeringo
Copy link
Collaborator

demeringo commented Dec 20, 2024

It seems that we need to declare a github team to publish as team.
We could use cloud-scanner-admins https://github.com/orgs/Boavizta/teams/cloud-scanner-admins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants