crane/examples
Ivan Petkov a3f0c63eed
Try to avoid IFD in vendorCargoDeps and crateNameFromCargoToml; also avoid recommending nesting cleanCargoSource and path (#641)
We don't need to nest `cleanCargoSource` and `path` just to populate a
default value for `name`. As they both ultimately delegate to
`builtins.path`, the nesting can lead to IFD in situations which are
otherwise avoidable
2024-06-10 20:53:46 -07:00
..
alt-registry Try to avoid IFD in vendorCargoDeps and crateNameFromCargoToml; also avoid recommending nesting cleanCargoSource and path (#641) 2024-06-10 20:53:46 -07:00
build-std Try to avoid IFD in vendorCargoDeps and crateNameFromCargoToml; also avoid recommending nesting cleanCargoSource and path (#641) 2024-06-10 20:53:46 -07:00
cross-musl Try to avoid IFD in vendorCargoDeps and crateNameFromCargoToml; also avoid recommending nesting cleanCargoSource and path (#641) 2024-06-10 20:53:46 -07:00
cross-rust-overlay Try to avoid IFD in vendorCargoDeps and crateNameFromCargoToml; also avoid recommending nesting cleanCargoSource and path (#641) 2024-06-10 20:53:46 -07:00
cross-windows Try to avoid IFD in vendorCargoDeps and crateNameFromCargoToml; also avoid recommending nesting cleanCargoSource and path (#641) 2024-06-10 20:53:46 -07:00
custom-toolchain Try to avoid IFD in vendorCargoDeps and crateNameFromCargoToml; also avoid recommending nesting cleanCargoSource and path (#641) 2024-06-10 20:53:46 -07:00
end-to-end-testing Try to avoid IFD in vendorCargoDeps and crateNameFromCargoToml; also avoid recommending nesting cleanCargoSource and path (#641) 2024-06-10 20:53:46 -07:00
quick-start Try to avoid IFD in vendorCargoDeps and crateNameFromCargoToml; also avoid recommending nesting cleanCargoSource and path (#641) 2024-06-10 20:53:46 -07:00
quick-start-simple Try to avoid IFD in vendorCargoDeps and crateNameFromCargoToml; also avoid recommending nesting cleanCargoSource and path (#641) 2024-06-10 20:53:46 -07:00
quick-start-workspace Try to avoid IFD in vendorCargoDeps and crateNameFromCargoToml; also avoid recommending nesting cleanCargoSource and path (#641) 2024-06-10 20:53:46 -07:00
sqlx Try to avoid IFD in vendorCargoDeps and crateNameFromCargoToml; also avoid recommending nesting cleanCargoSource and path (#641) 2024-06-10 20:53:46 -07:00
trunk buildTrunkPackage: disable version checks by default (#616) 2024-05-19 00:06:59 +00:00
trunk-workspace buildTrunkPackage: disable version checks by default (#616) 2024-05-19 00:06:59 +00:00
.gitignore ci: only build uncached derivations (#426) 2023-10-15 20:07:14 +00:00
README.md Add example of E2E testing (#368) 2023-10-12 18:59:36 -07:00

Examples

This directory contains several different ways of configuring a project:

  • alt-registry: build a cargo project which uses another crate registry besides crates.io
  • build-std: build a cargo project which requires building the standard library and other crates distributed with the Rust toolchain
  • cross-musl: build a cargo project with musl to crate statically linked binaries
  • cross-rust-overlay: cross compile a rust project using rust-overlay
  • cross-windows: cross compile a rust project for windows
  • custom-toolchain: build a cargo project with a custom toolchain (e.g. WASM builds)
  • quick-start: build a cargo project with a comprehensive test suite
  • quick-start-simple: build a cargo project without extra tests
  • end-to-end-testing: run end-to-end tests for a webapp