Diego Perez and Jakub Konka
57ead85727
nix: Use flake-parts, partitions, and treefmt-nix ( #45321 )
...
Release Notes:
Refactored:
- Use [flake-parts](https://flake.parts/index.html ) modules
- `nix/shell.nix` -> `nix/modules/devshells.nix`
Added:
- Use
[flake-parts.partitions](https://flake.parts/options/flake-parts-partitions.html )
to isolate dev dependencies so that flakes that use `zed-editor` don't
fetch dev-only inputs such as `treefmt-nix`
- [treefmt-nix](https://github.com/numtide/treefmt-nix )
- nixfmt
- rustfmt
Fixed:
- `shell.nix` and `default.nix` fetching `flake-compat` from
`flake.lock` which added an extra and unnecessary input/dependency to
`flake.nix`. Fixed by setting a fixed rev and sha256 instead.
- `nixfmt-rfc-style` is deprecated and is now `nixfmt`
- Fixes #45338 by using rust-overlay toolchain directly
- Previously, the devShell included `rustup` which caused slow startup
times as Nix would build rustup from source (including running its test
suite). Additionally, rust tooling (cargo, rustfmt, clippy,
rust-analyzer) wasn't available in the dev shell.
- cargo, rustc, and rust-toolchain.toml components included in
`rustToolchain`
Chore:
- Update `flake.lock`
- Format Rust code with `rustfmt` via `treefmt-nix`
---------
Co-authored-by: Jakub Konka <kubkon@jakubkonka.com >
2026-02-02 14:26:42 +00:00
..
2026-01-30 21:26:13 +00:00
2026-01-21 13:40:42 -03:00
2026-01-22 02:31:14 -05:00
2026-01-15 15:21:57 +00:00
2026-02-02 13:14:45 +00:00
2026-01-30 21:26:13 +00:00
2026-01-23 20:41:07 -03:00
2026-02-02 13:14:45 +00:00
2026-02-02 13:14:45 +00:00
2026-01-28 21:34:10 +00:00
2026-01-08 10:59:03 +00:00
2026-01-30 21:26:13 +00:00
2025-10-17 18:58:14 +00:00
2026-01-26 23:56:55 +00:00
2026-01-23 06:25:42 +00:00
2026-01-23 12:15:55 -05:00
2026-01-07 12:48:24 -08:00
2026-01-26 07:25:51 +00:00
2025-11-11 12:55:19 +00:00
2026-01-15 15:21:57 +00:00
2025-10-17 18:58:14 +00:00
2025-12-17 12:54:57 +01:00
2026-01-06 09:42:00 -03:00
2026-01-25 22:08:48 -05:00
2026-01-07 12:48:24 -08:00
2026-01-07 12:48:24 -08:00
2026-01-30 10:14:36 +01:00
2026-01-28 18:28:53 +00:00
2025-11-06 09:16:45 +00:00
2025-11-10 23:00:55 -07:00
2026-01-28 21:34:10 +00:00
2026-01-27 15:58:05 +00:00
2026-02-02 14:26:42 +00:00
2026-02-02 14:26:42 +00:00
2026-01-31 18:33:22 +00:00
2025-10-17 18:58:14 +00:00
2026-01-14 07:19:13 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2026-01-23 18:29:20 +01:00
2026-01-30 21:26:13 +00:00
2026-02-02 10:00:35 -03:00
2026-01-25 13:10:22 +01:00
2026-01-29 15:47:04 -05:00
2026-01-14 07:19:13 +00:00
2026-01-07 12:48:24 -08:00
2026-01-28 16:00:52 +00:00
2026-01-30 21:26:13 +00:00
2025-10-17 18:58:14 +00:00
2026-01-14 07:19:13 +00:00
2026-01-07 12:48:24 -08:00
2026-01-31 18:33:22 +00:00
2025-12-18 12:47:34 +00:00
2025-10-17 18:58:14 +00:00
2026-01-23 13:22:08 -08:00
2026-01-15 17:48:15 +00:00
2025-12-18 21:59:05 -05:00
2026-02-02 10:00:35 -03:00
2026-02-01 16:11:20 +02:00
2026-01-16 02:16:34 +00:00
2026-02-02 10:00:35 -03:00
2026-02-02 10:00:35 -03:00
2026-02-02 10:00:35 -03:00
2026-01-27 05:27:26 +00:00
2026-01-23 12:15:55 -05:00
2025-12-18 17:26:20 +01:00
2025-10-17 18:58:14 +00:00
2026-01-27 14:00:45 +01:00
2025-12-17 16:25:07 -08:00
2026-01-28 14:25:47 +01:00
2026-01-23 15:24:37 +00:00
2026-01-28 10:28:43 +01:00
2026-01-22 18:08:32 +00:00
2025-10-17 18:58:14 +00:00
2026-01-29 15:31:13 +00:00
2025-10-17 18:58:14 +00:00
2026-01-30 09:42:28 +01:00
2025-10-20 10:30:06 +00:00
2025-12-08 19:50:20 +01:00
2026-01-31 21:55:31 +00:00
2026-01-31 13:49:42 -05:00
2026-01-31 21:56:34 +00:00
2026-02-02 13:30:07 +01:00
2026-01-27 05:51:11 +00:00
2025-12-17 20:12:40 -06:00
2026-02-02 14:26:42 +00:00
2026-01-27 15:37:22 -03:00
2026-01-07 12:48:24 -08:00
2025-10-17 18:58:14 +00:00
2025-12-09 09:29:40 -08:00
2025-10-17 18:58:14 +00:00
2026-02-02 10:00:35 -03:00
2026-01-28 23:29:25 +01:00
2026-01-23 18:29:20 +01:00
2026-01-07 12:48:24 -08:00
2025-11-19 22:00:58 +00:00
2026-01-30 18:55:09 +00:00
2026-01-23 18:29:20 +01:00
2026-01-31 16:16:32 +00:00
2026-01-17 19:29:19 +00:00
2026-01-23 21:03:28 +00:00
2026-01-27 12:15:05 -05:00
2025-10-17 18:58:14 +00:00
2026-01-23 18:29:20 +01:00
2026-01-26 11:07:01 +00:00
2026-01-31 09:52:05 +02:00
2025-10-22 19:52:38 +00:00
2025-10-17 18:58:14 +00:00
2026-01-16 14:20:23 +00:00
2025-10-17 18:58:14 +00:00
2026-01-22 15:06:02 +02:00
2026-01-28 17:42:07 +00:00
2026-01-28 00:19:13 -03:00
2025-10-17 18:58:14 +00:00
2025-12-30 07:49:01 -03:00
2026-01-15 21:28:33 +00:00
2026-01-14 07:19:13 +00:00
2025-12-18 09:49:32 +00:00
2026-01-30 15:01:49 +00:00
2026-01-06 08:14:34 +00:00
2025-10-17 18:58:14 +00:00
2026-01-21 14:52:44 +00:00
2026-01-07 12:48:24 -08:00
2025-11-11 16:10:47 +01:00
2026-01-21 10:12:29 +00:00
2026-01-27 13:02:40 +00:00
2026-01-31 09:57:31 +02:00
2025-11-24 13:24:26 -05:00
2026-01-14 08:06:55 -03:00
2026-01-22 11:24:23 +00:00
2026-02-02 13:30:07 +01:00
2026-01-28 13:30:43 +01:00
2026-01-23 18:29:20 +01:00
2026-01-23 18:29:20 +01:00
2026-01-23 15:24:37 +00:00
2026-02-02 09:49:09 +01:00
2026-01-20 15:41:31 -05:00
2026-01-28 09:54:03 +05:30
2026-01-14 07:19:13 +00:00
2026-01-30 21:26:13 +00:00
2026-01-29 15:31:13 +00:00
2026-02-02 13:30:07 +01:00
2025-12-15 13:30:13 +00:00
2025-11-27 13:46:43 +00:00
2026-02-02 08:11:22 +00:00
2026-02-02 13:30:07 +01:00
2026-01-29 15:31:13 +00:00
2026-01-30 11:09:45 -06:00
2025-12-09 09:29:40 -08:00
2025-11-03 19:25:15 +00:00
2026-01-20 12:23:17 +00:00
2025-12-29 20:21:59 +00:00
2026-01-23 18:29:20 +01:00
2026-01-15 18:39:06 +00:00
2025-12-16 10:48:14 -05:00
2026-01-31 18:33:22 +00:00
2026-01-14 07:19:13 +00:00
2026-01-30 18:55:09 +00:00
2026-02-02 09:49:09 +01:00
2025-10-27 10:13:26 -04:00
2025-11-21 08:28:17 -07:00
2025-11-07 22:27:14 +00:00
2026-02-02 09:49:09 +01:00
2025-10-17 18:58:14 +00:00
2026-01-26 13:49:26 +00:00
2026-01-23 18:29:20 +01:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2026-01-29 16:33:38 -03:00
2025-11-03 19:25:15 +00:00
2026-01-30 15:01:18 +00:00
2026-02-02 10:00:35 -03:00
2026-01-04 23:28:18 +00:00
2026-01-28 00:19:13 -03:00
2025-11-24 13:34:04 +01:00
2025-12-16 08:26:29 +00:00
2026-01-30 21:26:13 +00:00
2026-01-26 19:47:36 +00:00
2025-11-07 11:36:05 +00:00
2026-01-28 16:36:44 -08:00
2026-01-30 21:26:13 +00:00
2026-02-02 09:49:09 +01:00
2026-01-19 09:08:45 +01:00
2026-01-26 13:02:05 +00:00
2025-10-17 18:58:14 +00:00
2026-01-15 18:10:21 +00:00
2025-12-01 20:52:57 -07:00
2026-01-28 17:05:34 +01:00
2026-01-28 21:34:10 +00:00
2026-01-30 07:19:07 +00:00
2026-02-02 14:26:42 +00:00
2026-02-02 13:30:07 +01:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2026-01-30 21:26:13 +00:00
2025-10-17 18:58:14 +00:00
2026-01-25 21:35:32 +01:00
2026-02-02 13:49:28 +00:00
2025-11-07 22:27:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2026-01-23 20:50:50 +00:00
2025-12-17 11:53:48 -07:00
2026-02-02 08:25:18 -03:00
2026-01-31 19:15:59 +00:00
2026-01-29 15:31:13 +00:00
2025-12-08 16:38:34 +01:00
2026-02-02 13:14:45 +00:00
2026-01-28 23:10:25 +00:00
2025-12-13 11:06:30 -05:00
2026-02-01 16:11:20 +02:00
2025-12-06 17:56:49 +00:00
2025-11-07 22:27:14 +00:00
2026-01-17 19:29:19 +00:00
2025-12-05 17:23:06 +00:00