Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
avoid-breaking-exported-api = false
allowed-idents-below-min-chars = ["x", "y", "z", "r", "g", "b", "c", "s"]
absolute-paths-allowed-crates = ["cstree"]
allowed-wildcard-imports = ["super", "Kind"]
22 changes: 22 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Check Flake"

on:
pull_request:
push:
branches-ignore:
- "update-*"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: cachix/install-nix-action@master
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v4

- run: nix flake check
name: Test Flake Outputs
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
result*
target
report*
proptest-regressions
27 changes: 27 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
group_imports = "StdExternalCrate"
edition = "2024" # keep this in sync with Cargo.toml
condense_wildcard_suffixes = true
doc_comment_code_block_width = 100
enum_discrim_align_threshold = 60
force_explicit_abi = false
force_multiline_blocks = true
format_code_in_doc_comments = true
format_macro_matchers = true
format_strings = true
hard_tabs = false
indent_style = "Block"
hex_literal_case = "Upper"
imports_granularity = "Crate"
imports_layout = "Vertical"
inline_attribute_width = 60
match_block_trailing_comma = true
max_width = 110
newline_style = "Unix"
normalize_comments = true
normalize_doc_attributes = true
overflow_delimited_expr = true
struct_field_align_threshold = 60
unstable_features = true
use_field_init_shorthand = true
use_try_shorthand = true
wrap_comments = true
Loading
Loading