| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
| |
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
|
|
|
| |
Closes: https://github.com/gentoo/cargo-ebuild/issues/27
Closes: https://github.com/gentoo/cargo-ebuild/pull/28
Signed-off-by: Leonardo Neumann <leonardo@neumann.dev.br>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
| |
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
| |
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
|
| |
Signed-off-by: Miezhiko <Miezhiko@gmail.com>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
|
|
|
| |
Closes: https://github.com/gentoo/cargo-ebuild/pull/15
Closes: https://github.com/gentoo/cargo-ebuild/issues/2
Signed-off-by: Leonardo Neumann <leonardo@neumann.dev.br>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
PathBuf is not necessary because the paths are not being modified. Since
generic monomorphization such as AsRef<Path> is a common source of code
bloat, I decided to use &Path instead.
Signed-off-by: Leonardo Neumann <leonardo@neumann.dev.br>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
|
|
| |
Closes: https://github.com/gentoo/cargo-ebuild/pull/7
Signed-off-by: Leonardo Neumann <leonardo@neumann.dev.br>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
|
|
| |
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Closes: https://github.com/gentoo/cargo-ebuild/pull/10
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
|
|
|
| |
Custom templates can just implement the blocks they care for
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
|
| |
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
|
| |
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
|
| |
Closes: https://github.com/gentoo/cargo-ebuild/pull/13
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
| |
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
|
| |
Closes: https://github.com/gentoo/cargo-ebuild/pull/8
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
|
|
|
| |
See rust#79202 <https://github.com/rust-lang/rust/issues/79202>
Closes: https://github.com/gentoo/cargo-ebuild/pull/9
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Optional package dependencies are not included when pulling metadata. In
some cases these packages are still required to actually build even when
those flags are turned off.
This change effectively adds `--all-features` to the call of cargo
metadata.
I don't know if this is due to a change in behavior from cargo build,
however, it seems prudent to include all possible dependencies.
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
The verbose and quiet flags don't do anything so drop these as valid
flags.
|
|
|
|
|
| |
Split the metadata gathering into its own function, separate from the
ebuild writing function.
|
|
|
|
|
| |
Gather up the package name and version to the metadata gathered from
cargo_metadata.
|
|
|
|
|
|
| |
failure, while popular is deprecated as the improvements it brought to
the community have been incorporated in the std Error trait. anyhow
takes advantage of that while giving us an easy error to pass around.
|
|
|
|
|
| |
Converted Cargo usage to cargo_metadata so now drop out the last usage
which was marshalling the error to the user.
|
|
|
|
|
|
| |
Get information about the package from cargo_metadata instead of from
Cargo directly. The information is almost the same, except for the
homepage of the crate itself.
|
|
|
|
|
| |
Use cargo metadata to gather the root package information instead of
relying on Cargo for this data.
|
|
|
|
|
|
|
|
| |
Since dependencies are compiled into the final binary, those licenses
must be included in the ebuild generated by the tool. Gather up the
licenses from each of the dependencies and include them in an AND
pattern since computing the OR pattern as well is a bit more effort but
this is an improvement.
|
|
|
|
|
|
| |
Switched from using Cargo to resolve the dependencies to using the
cargo_metadata crate, which calls Cargo and parses the machine parseable
data back.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Based on the review in https://github.com/gentoo/gentoo/pull/12365
|
| |
|
|
|
|
| |
Split away the metadata parsing into its own module.
|
|
|
|
|
|
| |
Added colored help output while removing unneded clap settings.
Signed-off-by: gibix <gibix@riseup.net>
|
| |
|
|
|
|
|
| |
Remove the instantiation of Cargo's config from the main binary and move
it to the library component.
|
|
|
|
|
|
| |
Cargo exported its own arg parsing interface that's based on clap. To
break the dependence on Cargo for everything, switch to parsing
arguments in the binary using structopt.
|
|
|
|
|
|
| |
To allow for testing the core functionality needs to be in a lib due to
the way testing works with Rust and Cargo. The binary is now just the
argument parser and then calling into the actual code in the lib.
|
|
|
|
| |
This allows us to get rid of the need for rustc-serialize. fixed #2.
|
| |
|
| |
|
|
|
|
|
| |
These should have been there from the start but add them now to avoid
any confusion.
|
| |
|
|
|
|
|
| |
Rather than defining the usage in place move it into its own variable
for future flexibility.
|
|
|
|
|
| |
Upgrade the Cargo dependency to 0.16 to support workspaces. This makes
the necessary adjustments based on Cargo API changes as well.
|