61 Commits

Author SHA1 Message Date
oxalica
89e5a4e61e Set default formatter to nixfmt-rfc-style
It's supposed to be the official formatting tool.
See: <https://github.com/NixOS/rfcs/pull/166>
2025-06-13 02:05:09 -04:00
oxalica
877a093557 Split out devShells dependenties to dev/flake.nix 2025-06-13 08:19:46 +08:00
oxalica
509f4efe3e Update flake lock and nightly rustfmt 2025-06-12 15:58:25 +08:00
oxalica
577d160da3 Enforce nixfmt check in pre-commit 2025-03-05 04:07:23 +08:00
oxalica
e04b043270 Update nightly rustc to 20250301 and regen flake.lock 2025-03-05 04:07:23 +08:00
oxalica
4f02cf15f3 Use lints table instead of clippy arguments 2025-03-05 04:07:23 +08:00
oxalica
7ad8eadcbe Update flake locks and rustfmt to 2024-11-01 2024-11-19 17:04:23 -05:00
oxalica
c8e8ce7244 Apply nixfmt 2024-09-18 23:25:30 -04:00
oxalica
9125bfeaff Update docs examples to use nixfmt-rfc-style
This is now the chosen formatter for nixpkgs.
2024-09-18 23:06:38 -04:00
oxalica
816aa96668 Update flake lock 2024-08-05 14:47:20 -04:00
oxalica
8f4a7bda7f Bump nightly rustfmt version 2024-05-30 12:15:55 -04:00
oxalica
aa24d32f04 Update flake and make it compatible with master changes
Ref: https://github.com/NixOS/nixpkgs/pull/305951
2024-05-01 09:46:45 -04:00
oxalica
ff231923ed Warn instead of fail on dirty worktree
Fixes #119
2024-01-07 14:49:20 +08:00
oxalica
e72b98fed5 Update flake and nightly rustc for rustfmt and fuzz 2024-01-07 14:42:00 +08:00
oxalica
b4a01cee32 Revert test in pre-commit and fix CI
Partially reverts 51e6714.

1. Testing in pre-commit is too long and suffers from different
   environment setup.
2. `--include-ignored` breaks criterion CLI currently.
2023-10-17 18:43:03 +08:00
oxalica
51e67142ad Fix benchmark and enforce test success in CI 2023-10-16 21:47:53 +08:00
Jacob Birkett
28b0432cf8 flake: add meta.mainProgram (#110) 2023-10-09 09:27:59 +08:00
oxalica
bd7e2e2de7 Fix clippy warnings 2023-09-08 20:54:38 +08:00
oxalica
0c4934ad67 Split out a devenv without custom rustc 2023-07-19 17:09:07 +08:00
oxalica
40be56eddf Use nixUnstable in dependency for latest docs 2023-07-10 11:27:39 +08:00
oxalica
fb8a8cb077 Add rust-src in dev env for rust-analyzer 2023-07-10 05:44:27 +08:00
oxalica
05b7d9e936 Update rustfmt and format let-else 2023-07-09 07:47:27 +08:00
oxalica
e74b767a43 Update flake 2023-05-02 01:39:28 +08:00
oxalica
c47ad0d6b2 Update dependencies 2023-05-02 01:26:16 +08:00
oxalica
4a78a44f3e Watch flake.{nix,lock} for auto-reloading 2023-04-29 14:00:00 +08:00
oxalica
b359f4ff24 Use async-lsp from git 2023-04-20 23:34:09 +08:00
oxalica
775ba9e6ac Parse flake outputs and add flake package meta 2023-03-27 00:10:43 +08:00
oxalica
bbca41c5ee Apply clippy::uninlined_format_args 2023-03-10 16:10:09 +08:00
oxalica
4ec9367726 Apply clippy::manual-let-else 2023-03-10 16:10:09 +08:00
oxalica
4a9f128200 Apply clippy::{doc_markdown,missing-panics-doc} 2023-03-10 16:10:02 +08:00
oxalica
1d223b505d Fix CI 2023-02-26 08:28:32 +08:00
oxalica
128a699e5f Init coc.nvim extension 2023-02-26 07:18:14 +08:00
oxalica
944d5c3355 Remove nix from the default devShell 2023-02-14 23:54:14 +08:00
oxalica
4dd931f460 Enforce clippy::semicolon_if_nothing_returned 2023-02-14 23:54:14 +08:00
oxalica
d066d67ad2 Forbid todo! 2023-02-10 04:39:11 +08:00
oxalica
f1c2dbc857 Use argh and simplify version embedding 2023-01-28 22:29:26 +08:00
oxalica
3f84b783d3 Exclude gdb for unsupported platforms 2023-01-19 15:35:03 +08:00
oxalica
07543e5de8 Update rust toolchain to 1.66 2023-01-19 14:40:02 +08:00
oxalica
893ae1f63f Use pre-commit from Nix shell for CI style check 2023-01-01 05:48:55 +08:00
oxalica
f1304942e3 Fix rust 1.64 compatibility
nixpkgs still have rust 1.64 on master.
2022-11-24 19:20:42 +08:00
oxalica
f4cdc1a106 Remove heavy commands from pre-commit hook 2022-11-23 20:08:58 +08:00
oxalica
4216d2a60d Update dependencies 2022-10-04 02:11:25 +08:00
oxalica
d2a22b8460 Add config for vim-lsp 2022-09-28 18:17:33 +08:00
oxalica
f535de51d1 Impl file formatting via external command
Fixes #12
2022-09-26 15:54:01 +08:00
janabhumi
4c77fa90ef Add overlays to flake
Closes #17
2022-09-25 17:14:20 +08:00
oxalica
193c3239ce Include vscodium only for supported platforms 2022-09-24 23:48:29 +08:00
oxalica
fdc550facf Add test env and fix README for vscod{e,ium} + Nix IDE 2022-09-24 17:57:05 +08:00
oxalica
aa69e25c93 Build and test all crates in drv 2022-09-22 21:38:55 +08:00
oxalica
c71d4b7070 Fix build and show hints when nix is not found 2022-09-22 21:30:19 +08:00
oxalica
cf182a8ca4 Generate builtins from Nix 2022-09-22 18:26:56 +08:00