aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* src/base.tera: update template againGeorgy Yakovlev2023-01-041-2/+5
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* src/base.tera: add QA_FLAGS_IGNOREDGeorgy Yakovlev2023-01-041-0/+4
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* Ignore SPDX parentheses and add crate name to the license error messageLeonardo Neumann2023-01-042-2/+6
| | | | | | | 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>
* Update deps, adjust lockfile importGeorgy Yakovlev2022-07-271-1/+1
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* src/base.tera: update whitespaceGeorgy Yakovlev2021-10-071-0/+1
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* package-name option support, it needs for Cargo.toml without root packageMiezhiko2021-10-072-8/+25
| | | | | Signed-off-by: Miezhiko <Miezhiko@gmail.com> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* Implement audit functionality using rustsecLeonardo Neumann2021-08-263-3/+108
| | | | | | | 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>
* Use path references instead of owned counterpartsLeonardo Neumann2021-08-262-10/+10
| | | | | | | | | 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>
* Remove cargo-lock dependencyLeonardo Neumann2021-08-261-41/+5
| | | | | | 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>
* Update the base templateLuca Barbato2021-08-251-4/+3
| | | | | | 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>
* Move the bulk of the template to base.teraLuca Barbato2021-08-253-27/+36
| | | | | | | 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>
* Add an option to provide a custom tera templateLuca Barbato2021-08-252-3/+14
| | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* Convert the default template to teraLuca Barbato2021-08-253-26/+30
| | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* Update dependencies0.3.3Matthew2021-08-021-1/+1
| | | | | Closes: https://github.com/gentoo/cargo-ebuild/pull/13 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* src/license.rs: add Apache-2.0-with-LLVM-exceptionsGeorgy Yakovlev2021-08-021-0/+1
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* Initial support for license mappingLeonardo H. Neumann2021-08-022-11/+179
| | | | | Closes: https://github.com/gentoo/cargo-ebuild/pull/8 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* Do not call a proc macro helper before it is definedLuca Barbato2021-08-011-1/+1
| | | | | | | 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>
* feat: include all features when pulling metadataPhilip DeMonaco2021-06-191-0/+3
| | | | | | | | | | | | | | 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>
* update output ebuild formattingTheo Anderson2020-12-042-6/+3
|
* Implemented automatic lockfile generationLeonardo H. Neumann2020-08-241-2/+33
|
* Fixed dependency resolution using Cargo.lockLeonardo H. Neumann2020-08-161-11/+18
|
* fixed local crates being added to ebuildLeonardo H. Neumann2020-06-181-1/+5
|
* drop unused verbose and quiet flagsDoug Goldstein2020-01-262-13/+2
| | | | | The verbose and quiet flags don't do anything so drop these as valid flags.
* split metadata gathering and ebuild writing functionsDoug Goldstein2020-01-262-18/+29
| | | | | Split the metadata gathering into its own function, separate from the ebuild writing function.
* add package name and version to metadata structDoug Goldstein2020-01-261-0/+4
| | | | | Gather up the package name and version to the metadata gathered from cargo_metadata.
* convert to anyhow for modern ErrorDoug Goldstein2020-01-262-7/+5
| | | | | | 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.
* drop Cargo usageDoug Goldstein2020-01-262-19/+3
| | | | | Converted Cargo usage to cargo_metadata so now drop out the last usage which was marshalling the error to the user.
* convert from Cargo package data to cargo_metadataDoug Goldstein2020-01-263-53/+13
| | | | | | 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.
* gather root package data from cargo metadataDoug Goldstein2020-01-261-0/+17
| | | | | Use cargo metadata to gather the root package information instead of relying on Cargo for this data.
* include license info for dependsDoug Goldstein2020-01-263-10/+32
| | | | | | | | 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.
* switch to cargo_metadata for dep infoDoug Goldstein2020-01-262-55/+28
| | | | | | Switched from using Cargo to resolve the dependencies to using the cargo_metadata crate, which calls Cargo and parses the machine parseable data back.
* reformat code with new rustfmt from rustupDoug Goldstein2019-10-102-5/+6
|
* upgrade to structopt 0.3Doug Goldstein2019-10-101-3/+8
|
* clean up cargo clippy warningsupdate-cargoDoug Goldstein2019-10-102-5/+4
|
* upgrade to Cargo 0.37Doug Goldstein2019-10-101-3/+7
|
* Update ebuild.templatekpcyrd2019-10-101-2/+2
| | | | Based on the review in https://github.com/gentoo/gentoo/pull/12365
* Update to cargo 0.29 and fix build.Roel Aaij2019-10-102-10/+14
|
* split metadata parsing and ebuild generationDoug Goldstein2018-08-262-28/+81
| | | | Split away the metadata parsing into its own module.
* add colored help and removed clap settingsgibix2018-08-261-8/+2
| | | | | | Added colored help output while removing unneded clap settings. Signed-off-by: gibix <gibix@riseup.net>
* replace outdated try!() macro with ? operatorgibix2018-07-071-20/+16
|
* remove more Cargo usage from main binaryDoug Goldstein2018-06-292-16/+21
| | | | | Remove the instantiation of Cargo's config from the main binary and move it to the library component.
* switch from cargo to structopt for arg parsingDoug Goldstein2018-06-292-28/+46
| | | | | | 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.
* separate functionality into a libDoug Goldstein2018-06-292-135/+158
| | | | | | 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.
* upgrade cargo 0.19 to cargo 0.21Doug Goldstein2017-10-301-16/+11
| | | | This allows us to get rid of the need for rustc-serialize. fixed #2.
* move from cargo 0.17 to cargo 0.19Doug Goldstein2017-10-301-1/+1
|
* rustfmt with 0.8.6Doug Goldstein2017-10-301-29/+31
|
* add missing license noticesDoug Goldstein2017-10-301-0/+10
| | | | | These should have been there from the start but add them now to avoid any confusion.
* upgrade to Cargo 0.17Doug Goldstein2017-04-171-3/+9
|
* move usage into its own variableDoug Goldstein2017-04-171-5/+5
| | | | | Rather than defining the usage in place move it into its own variable for future flexibility.
* upgrade to Cargo 0.16 to support workspacesDoug Goldstein2017-04-161-21/+44
| | | | | Upgrade the Cargo dependency to 0.16 to support workspaces. This makes the necessary adjustments based on Cargo API changes as well.