Ivan Petkov
f2926e34a1
chore: replace overrideScope' with overrideScope ( #517 )
2024-02-08 03:38:28 +00:00
Ivan Petkov
7814285d01
chore: bump all cargo deps ( #504 )
2024-01-27 03:58:59 +00:00
Leonardo Eugênio
2a5136f14a
buildTrunkPackage: Add "wasm-bindgen-cli" argument ( #363 )
2023-12-20 08:24:53 -08:00
Ivan Petkov
3330c0de31
fix(ci): don't ignore errors from examples ( #484 )
2023-12-16 18:03:21 +00:00
dependabot[bot]
6591e80137
chore(deps): bump zerocopy from 0.7.26 to 0.7.31 in /examples/sqlx ( #483 )
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.26 to 0.7.31.
- [Release notes](https://github.com/google/zerocopy/releases )
- [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md )
- [Commits](https://github.com/google/zerocopy/compare/v0.7.26...v0.7.31 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 20:40:45 -08:00
Ivan Petkov
a332503a0f
examples: simplify sqlx template ( #469 )
2023-11-30 00:15:13 +00:00
Ivan Petkov
514cd663e5
examples: add sqlx template ( #467 )
2023-11-29 01:08:21 +00:00
Ivan Petkov
85e31d408a
examples: avoid re-instantiating nixpkgs where possible ( #460 )
...
* i.e. if we neither set localSystem/crossSystem, nor add overlays, we
can directly utilize `nixpkgs.legacyPackages.${system}` directly and
avoid re-evaluating nixpkgs an additional time
2023-11-26 18:37:43 +00:00
Ivan Petkov
2b1203872d
chore: clean up some dead code warnings ( #449 )
2023-11-05 18:42:08 +00:00
Aidan Gauland
f8f1b3fc5b
cargoLib.cargoDeny: init ( #440 )
...
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2023-10-20 21:45:03 +00:00
Ivan Petkov
ff6e2c1f24
ci: also use fast-flake-check for examples ( #433 )
2023-10-16 19:56:16 -07:00
Ivan Petkov
d4bddd0a8c
chore: update all examples with strictDeps = true;
( #430 )
2023-10-15 22:25:34 +00:00
Ivan Petkov
e5ec5d9e10
ci: only build uncached derivations ( #426 )
2023-10-15 20:07:14 +00:00
Ivan Petkov
9d6bf09d32
chore: clean up some dead code
2023-10-15 11:38:35 -07:00
Ivan Petkov
117ac48319
chore: update all test deps ( #420 )
2023-10-13 02:57:37 +00:00
dependabot[bot]
01192a9b52
chore(deps): bump webpki from 0.22.0 to 0.22.4 in /examples/end-to-end-testing ( #419 )
2023-10-13 02:25:10 +00:00
Leonardo Eugênio
88b2a5fc4e
Add example of E2E testing ( #368 )
2023-10-12 18:59:36 -07:00
Ivan Petkov
2431a7a02c
examples: drop tarpaulin from quickstart flake
2023-09-21 20:49:27 -07:00
Rebecca Turner
7b92b595c9
Add devshell
helper ( #378 )
2023-09-03 10:33:10 -07:00
Ivan Petkov
ff2e879b26
update all Cargo.locks ( #364 )
...
Flake lock file updates:
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/4a56ce9727a0c5478a836a0d8a8f641c5b9a3d5f' (2023-08-02)
→ 'github:NixOS/nixpkgs/5068bc8fe943bde3c446326da8d0ca9c93d5a682' (2023-08-07)
• Updated input 'rust-overlay':
'github:oxalica/rust-overlay/99df4908445be37ddb2d332580365fce512a7dcf' (2023-08-03)
→ 'github:oxalica/rust-overlay/b520a3889b24aaf909e287d19d406862ced9ffc9' (2023-08-07)
2023-08-11 00:13:17 +00:00
Ivan Petkov
a0d1df4631
Fix alt-registry example ( #343 )
...
* crates.io uses the sparse registry by default, and trying to
explicitly register a sparse registry for it results in errors
* Also set nixConfig to include binary cache
2023-06-18 23:16:45 +00:00
James Baker
75f7d715f8
Natively support sparse registries ( #324 )
...
With Cargo 1.68.0, sparse registries were made stable. With sparse
registries, index metadata is stored in an HTTP api rather than in
a git repository.
As relevant to Crane, the relevant changes are mostly that registries
do not always start with `registry+` and mostly start with `registry+`
or `sparse+` depending on whether the registry is sparse or not.
This PR adjusts the core of Crane to differentiate between `registry`
and `sparse`, and adds a new sparse registry factory to make things
easy.
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2023-06-13 02:03:18 +00:00
Ivan Petkov
f31931d6f8
Update support to nixos-23.05 ( #339 )
...
Dropping support for nixos-22.11
2023-06-08 00:15:38 +00:00
Ivan Petkov
7b5bd9e5ac
examples: remove darwin SDKs from cross compile example ( #321 )
2023-05-07 17:18:21 -07:00
Leonardo Eugênio
dd77ba5f6c
fix: incremental compilation in trunk examples, set target using env var ( #316 )
2023-05-03 17:24:02 +00:00
Leonardo Eugênio
7d74bfafea
fix: building trunk projects that use sass, add test ( #314 )
2023-05-02 17:23:35 -07:00
Leonardo Eugênio
db21a44eb0
Trunk support ( #299 )
...
[Trunk](https://trunkrs.dev ) is a tool that allow you to build web apps
using Rust and webassembly, including compiling scss, and distributing
other assets.
Adds `craneLib.buildTrunkPackage`, a function that builds a Trunk
project returning a directory with the resulting dist files for that
project
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2023-04-29 12:34:39 -07:00
Ivan Petkov
54b63c8eae
chore: update all Cargo.locks ( #304 )
2023-04-16 21:28:36 +00:00
Ivan Petkov
65d3f6a397
Update flake.lock ( #290 )
...
* flake.lock: Update
Flake lock file updates:
• Updated input 'flake-utils':
'github:numtide/flake-utils/3db36a8b464d0c4532ba1c7dda728f4576d6d073' (2023-02-13)
→ 'github:numtide/flake-utils/93a2b84fc4b70d9e089d029deacc3583435c2ed6' (2023-03-15)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/ae8bdd2de4c23b239b5a771501641d2ef5e027d0' (2023-03-01)
→ 'github:NixOS/nixpkgs/53dad94e874c9586e71decf82d972dfb640ef044' (2023-04-03)
• Updated input 'rust-overlay':
'github:oxalica/rust-overlay/e53e8853aa7b0688bc270e9e6a681d22e01cf299' (2023-03-03)
→ 'github:oxalica/rust-overlay/7ec2ff598a172c6e8584457167575b3a1a5d80d8' (2023-04-03)
* Filter out build-std example on macOS
* Update cross-overlay example
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-04 05:08:23 +00:00
Ivan Petkov
f491bee4f9
Add support for building standard library crates ( #287 )
...
* vendorCargoRegistries: accept `registries` from the caller if specified
* Add vendorMultipleCargoDeps
2023-04-02 17:57:17 +00:00
Ivan Petkov
72fa29510a
chore: bump all Cargo.locks ( #280 )
2023-03-26 06:21:21 +00:00
Ivan Petkov
81d95a1fb8
quick-start: remove bogus follows clause ( #277 )
2023-03-22 04:46:10 +00:00
Ivan Petkov
6fd78bc66a
Add path
as a convenience wrapper around builtins.path
( #273 )
2023-03-19 20:57:15 -07:00
figsoda
475de74fa2
feat: add cargoLlvmCov ( #267 )
...
* feat: add cargoLlvmCov
* cargoHelperFunctionsHook: prefer `--release` over `--profile release`
Some tools (e.g. cargo-llvm-cov) don't understand `--profile release` as
an alias for `--release`, so `cargoWithProfile` should prefer passing
`--release` when `$CARGO_PROFILE` == "release"
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2023-03-19 23:44:14 +00:00
Ivan Petkov
685e7494b0
examples: correctly propagate devShell inputs from checks ( #255 )
2023-02-26 00:08:09 +00:00
Ivan Petkov
746a603a61
templates: add .gitignore file ( #254 )
2023-02-25 23:01:57 +00:00
Ivan Petkov
ba201b5632
docs: add various new sections and examples ( #252 )
...
* add a section on customizing builds
* add an example for building custom command helpers
* add example on adding custom devShell env vars
* add local development section
2023-02-23 04:47:24 +00:00
Ivan Petkov
8c34e5ecad
docs: Clarify docs and add example of setting custom environment variable ( #233 )
...
Clarify docs and add example of setting custom environment variable
2023-02-09 00:27:05 +00:00
Ivan Petkov
7e2e5b3cc1
chore: bump all Cargo.lock files ( #230 )
2023-02-07 23:47:42 +00:00
dependabot[bot]
1bde9c762e
chore(deps): bump tokio from 1.24.1 to 1.25.0 in /examples/cross-rust-overlay ( #229 )
2023-02-04 01:58:44 +00:00
Ivan Petkov
0144134311
chore: bump all Cargo.locks ( #219 )
2023-01-07 01:47:45 +00:00
Ivan Petkov
ea3a813939
examples: add cross-windows ( #218 )
...
* ci: disable running examples
2023-01-07 01:11:42 +00:00
dependabot[bot]
da51c58712
chore(deps): bump tokio from 1.18.0 to 1.24.1 in /examples/cross-rust-overlay ( #217 )
2023-01-06 22:52:29 +00:00
Mitch Tishmack
59b31b41a5
Add buildInputs to quick-start doc ( #185 )
2022-12-12 18:54:27 -08:00
Ivan Petkov
e80de1e74a
Allow passing arbitrary fetchurl args per registry ( #168 )
...
Co-authored-by: Amos Wenger <amoswenger@gmail.com>
2022-11-20 16:22:13 -08:00
Ivan Petkov
acbb22591c
ci: enable building examples with macOS ( #170 )
2022-11-19 16:08:15 -08:00
Mitch Tishmack
074825a9e8
Update default template to work on macos ( #157 )
...
Fixes #156
2022-11-09 18:25:18 -08:00
Ivan Petkov
2ce1a3313e
Eliminate dead code ( #148 )
2022-10-23 23:20:22 +00:00
Ivan Petkov
1428f3ae64
Update flake deps ( #121 )
2022-09-26 21:52:38 -07:00
Ivan Petkov
c12fec0a8b
Add cleanCargoSource and filterCargoSources ( #110 )
2022-09-21 01:27:47 +00:00