Commit Graph

102 Commits

Author SHA1 Message Date
[eureka@nixos]
96fd12c710
Add taploFmt TOML format function to mkLib (#674)
---------

Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-08-31 17:27:30 +00:00
Ivan Petkov
6f7504ad93
Drop dependency on nixpkgs (#692)
Callers should use `mkLib` with an instantiation of `pkgs` instead of
using `crane.lib.${system}` directly
2024-08-29 23:29:16 +00:00
Ivan Petkov
ae7a716524
chore: bump sqlx to 0.8 in examples (#688) 2024-08-24 21:50:30 +00:00
Ivan Petkov
7543c8d76f
chore: bump all example Cargo.locks (#686) 2024-08-24 20:58:19 +00:00
Ivan Petkov
7ce9281980
Update internal flake.lock (#679)
* test/flake.lock: Update

Flake lock file updates:

• Updated input 'advisory-db':
    'github:rustsec/advisory-db/0e7413f7941015a388b58730a53bf2529f50ab14' (2024-07-23)
  → 'github:rustsec/advisory-db/201638b35a3e85b7794e84cc73f876d7a2b7ad51' (2024-08-16)
• Updated input 'crane':
    'github:ipetkov/crane/0081e9c447f3b70822c142908f08ceeb436982b8' (2024-07-23)
  → 'github:ipetkov/crane/4c6c77920b8d44cd6660c1621dea6b3fc4b4c4f4' (2024-08-06)
• Updated input 'fenix':
    'github:nix-community/fenix/31cd6d83e0e3900f10053daf33bd878792946282' (2024-07-24)
  → 'github:nix-community/fenix/73b4e46c0f6e93b104f5a9c9573bd2ad0e319061' (2024-08-18)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/eb5da56d839ae0a9e9f50774fa3eb78eb0964550' (2024-07-23)
  → 'github:rust-lang/rust-analyzer/fa003262474185fd62168379500fe906b331824b' (2024-08-17)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/2e19d60f8f7ad31c7991ac040e7b24c4f1a59bbe' (2024-07-24)
  → 'github:NixOS/nixpkgs/38fb99e12ff992a05641086dba26d1a5849929d1' (2024-08-18)
• Updated input 'nixpkgs-darwin':
    'github:NixOS/nixpkgs/ea73e7ae9dea53d112cb08fb78f4e00d1f686c54' (2024-07-22)
  → 'github:NixOS/nixpkgs/1cbd3d585263dc620c483e138d352a39b9f0e3ec' (2024-08-17)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/a6afdaab4a47d6ecf647a74968e92a51c4a18e5a' (2024-07-24)
  → 'github:oxalica/rust-overlay/456e78a55feade2c3bc6d7bc0bf5e710c9d86120' (2024-08-18)

* examples/build-std: fix build
2024-08-18 18:36:20 +00:00
Ivan Petkov
ac39fd68f7
example: alt-registry: bump cargo dependencies 2024-08-05 17:53:13 -07:00
dependabot[bot]
3740c3d1f2
chore(deps): bump openssl from 0.10.63 to 0.10.66 in /examples/sqlx (#669) 2024-07-22 23:41:43 +00:00
Ivan Petkov
1791a5b98d
Drop non-existent input override for oxalica/rust-overlay (#663) 2024-07-14 16:36:42 +00:00
Simon Žlender
aa5dcd0518
Splice overrideToolchain (#652)
---------

Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-06-29 11:29:52 -07:00
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
Ivan Petkov
a21d14679f
Update cross compile example (#638)
* Sometimes we also need to set the TARGET_CC environment variable to
  allow cross compiling crates which also need to build a program to run
  on the build platform itself
2024-06-09 01:15:24 +00:00
Ivan Petkov
9787dc25b2
lib: use makeScopeWithSplicing' instead of makeScope (#634) 2024-06-03 02:48:19 +00:00
Ivan Petkov
a7146b0440
flake: deprecate crane.lib.${system} (#617) 2024-05-19 01:07:07 +00:00
Ivan Petkov
5b0b062ff0
buildTrunkPackage: disable version checks by default (#616) 2024-05-19 00:06:59 +00:00
Ivan Petkov
7561856e5e
examples: fix quick-start-simple warning against accidental rebuilds (#607) 2024-05-04 19:56:48 +00:00
Ivan Petkov
92d2b4b64a
Use resolver = 2 in all Cargo.tomls (#608) 2024-05-04 19:56:00 +00:00
Ivan Petkov
33d5862dbb
crateNameFromCargoToml: support selecting a name from metadata (#606) 2024-05-04 19:36:42 +00:00
Ivan Petkov
dbc8bc7fe9
examples: tweak quick-start-simple to warn against accidental rebuilds (#605) 2024-05-04 11:04:08 -07:00
Ivan Petkov
3124551aeb
chore: update end-to-end-example deps (#601) 2024-05-01 04:05:27 +00:00
Ivan Petkov
f6c6a2fb1b
Add workspace example (#597) 2024-04-21 22:23:03 +00:00
drishal
832e916eda
examples/cross-windows: fix issues related to openssl and libring (#588)
---------

Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-04-21 03:06:32 +00:00
Ivan Petkov
534860a39c
chore: bump Cargo.locks (#579) 2024-04-05 20:21:41 +00:00
dependabot[bot]
8a06ce2a08
chore(deps): bump whoami from 1.4.1 to 1.5.1 in /examples/sqlx (#578)
Bumps [whoami](https://github.com/ardaku/whoami) from 1.4.1 to 1.5.1.
- [Changelog](https://github.com/ardaku/whoami/blob/v1/CHANGELOG.md)
- [Commits](https://github.com/ardaku/whoami/compare/v1.4.1...v1.5.1)

---
updated-dependencies:
- dependency-name: whoami
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-05 12:06:19 -07:00
dependabot[bot]
47e7a90113
chore(deps): bump whoami from 1.4.1 to 1.5.1 in /examples/end-to-end-testing (#577)
chore(deps): bump whoami in /examples/end-to-end-testing

Bumps [whoami](https://github.com/ardaku/whoami) from 1.4.1 to 1.5.1.
- [Changelog](https://github.com/ardaku/whoami/blob/v1/CHANGELOG.md)
- [Commits](https://github.com/ardaku/whoami/compare/v1.4.1...v1.5.1)

---
updated-dependencies:
- dependency-name: whoami
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-05 12:06:09 -07:00
Luflosi
fc610a825d
Fix typo (#552) 2024-03-19 03:33:53 +00:00
dependabot[bot]
d90be2c7af
chore(deps): bump mio from 0.8.10 to 0.8.11 in /examples/trunk-workspace (#541)
Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.10 to 0.8.11.
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/compare/v0.8.10...v0.8.11)

---
updated-dependencies:
- dependency-name: mio
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-05 03:30:31 +00:00
dependabot[bot]
5be7bd6dac
chore(deps): bump mio from 0.8.10 to 0.8.11 in /examples/sqlx (#542)
Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.10 to 0.8.11.
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/compare/v0.8.10...v0.8.11)

---
updated-dependencies:
- dependency-name: mio
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-05 03:30:25 +00:00
dependabot[bot]
7ca1553c20
chore(deps): bump mio from 0.8.10 to 0.8.11 in /examples/end-to-end-testing (#543)
chore(deps): bump mio in /examples/end-to-end-testing

Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.10 to 0.8.11.
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/compare/v0.8.10...v0.8.11)

---
updated-dependencies:
- dependency-name: mio
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-05 03:30:12 +00:00
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