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

Cargo.lock file #3

Closed
0323pin opened this issue Jan 25, 2022 · 6 comments
Closed

Cargo.lock file #3

0323pin opened this issue Jan 25, 2022 · 6 comments

Comments

@0323pin
Copy link
Contributor

0323pin commented Jan 25, 2022

What I'd to have is for you to provide a Cargo.lock file to avoid a manual step while updating the package.
See for example, dust repository,

2022-01-25-202725_1366x768_scrot

@0323pin
Copy link
Contributor Author

0323pin commented Jan 25, 2022

@mihaigalos package has now been merged into pkgsrc main branch, https://mail-index.netbsd.org/pkgsrc-changes/2022/01/25/msg247615.html

@mihaigalos
Copy link
Owner

I had a look at multiple repos I own, seems the cargo init produces only /target in .gitignore.
If repo is created directly in GitHub with language Rust, then .gitignore contains:

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

I have it locally, let me add it to git.

@mihaigalos
Copy link
Owner

Added in 5a013f8

I'll create a new release once #4 is fixed.
That one will then contain the Cargo.lock.

@0323pin
Copy link
Contributor Author

0323pin commented Jan 25, 2022

Nice, now it's there.
The reason I wanted it is that it's used to generate the following list.

CARGO_CRATE_DEPENDS+=  ansi_term-0.12.1
CARGO_CRATE_DEPENDS+=  atty-0.2.14
CARGO_CRATE_DEPENDS+=  autocfg-1.0.1
CARGO_CRATE_DEPENDS+=  bitflags-1.3.2
CARGO_CRATE_DEPENDS+=  byte-unit-4.0.13
CARGO_CRATE_DEPENDS+=  cc-1.0.72
CARGO_CRATE_DEPENDS+=  cfg-if-1.0.0
CARGO_CRATE_DEPENDS+=  clap-2.34.0
CARGO_CRATE_DEPENDS+=  colored-2.0.0
CARGO_CRATE_DEPENDS+=  hermit-abi-0.1.19
CARGO_CRATE_DEPENDS+=  lazy_static-1.4.0
CARGO_CRATE_DEPENDS+=  libc-0.2.114
CARGO_CRATE_DEPENDS+=  memoffset-0.6.5
CARGO_CRATE_DEPENDS+=  nix-0.23.1
CARGO_CRATE_DEPENDS+=  strsim-0.8.0
CARGO_CRATE_DEPENDS+=  textwrap-0.11.0
CARGO_CRATE_DEPENDS+=  unicode-width-0.1.9
CARGO_CRATE_DEPENDS+=  utf8-width-0.1.5
CARGO_CRATE_DEPENDS+=  vec_map-0.8.2
CARGO_CRATE_DEPENDS+=  winapi-0.3.9
CARGO_CRATE_DEPENDS+=  winapi-i686-pc-windows-gnu-0.4.0
CARGO_CRATE_DEPENDS+=  winapi-x86_64-pc-windows-gnu-0.4.0

When it's not there, I need to first generate it and then convert it into the above using sed and some manual editing.

Feel free to close this issue.
I'll make PR with install instructions tomorrow.

@mihaigalos
Copy link
Owner

Ok. I'm tagging and releasing 0.2.1.

@0323pin
Copy link
Contributor Author

0323pin commented Jan 25, 2022

Thanks!
I'll probably won't be able to push an update tonight.
Will see what I can do.

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

No branches or pull requests

2 participants