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

Add Cargo.lock to repository #256

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add Cargo.lock to repository #256

wants to merge 1 commit into from

Conversation

Elarnon
Copy link
Collaborator

@Elarnon Elarnon commented May 9, 2019

As https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
says:

If you’re building a non-end product, such as a rust library that
other rust packages will depend on, put Cargo.lock in your .gitignore.
If you’re building an end product, which are executable like
command-line tool or an application, or a system library with crate-type
of staticlib or cdylib, check Cargo.lock into git.

Technically telamon (the crate) is a library, but its only users are
the kernels and telamon-capi crates, which are respectively used
through command-line tools and a system .so cdylib. Hence there are no
good reasons not to keep the Cargo.lock in the repository, at least
until the day (if it comes) there are other Rust packages (outside of
this repo) which use telamon (the crate).

This allows to have shared, known-working dependency versions across
developers and machines.

As https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
says:

> If you’re building a non-end product, such as a rust library that
> other rust packages will depend on, put Cargo.lock in your .gitignore.
> If you’re building an end product, which are executable like
> command-line tool or an application, or a system library with crate-type
> of staticlib or cdylib, check Cargo.lock into git.

Technically `telamon` (the crate) is a library, but its only users are
the `kernels` and `telamon-capi` crates, which are respectively used
through command-line tools and a system .so cdylib.  Hence there are no
good reasons not to keep the `Cargo.lock` in the repository, at least
until the day (if it comes) there are other Rust packages (outside of
this repo) which use `telamon` (the crate).

This allows to have shared, known-working dependency versions across
developers and machines.
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

Successfully merging this pull request may close these issues.

1 participant