Skip to content

Commit 78defa4

Browse files
authored
Upgrading to DF41 (#7)
1 parent 99ed391 commit 78defa4

15 files changed

+1367
-903
lines changed

.cargo/config.toml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[target.x86_64-apple-darwin]
2+
rustflags = [
3+
"-C", "link-arg=-undefined",
4+
"-C", "link-arg=dynamic_lookup",
5+
]
6+
7+
[target.aarch64-apple-darwin]
8+
rustflags = [
9+
"-C", "link-arg=-undefined",
10+
"-C", "link-arg=dynamic_lookup",
11+
]
12+

.pre-commit-config.yaml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
repos:
19+
- repo: https://github.com/rhysd/actionlint
20+
rev: v1.6.23
21+
hooks:
22+
- id: actionlint-docker
23+
- repo: https://github.com/astral-sh/ruff-pre-commit
24+
# Ruff version.
25+
rev: v0.3.0
26+
hooks:
27+
# Run the linter.
28+
- id: ruff
29+
# Run the formatter.
30+
- id: ruff-format
31+
- repo: local
32+
hooks:
33+
- id: rust-fmt
34+
name: Rust fmt
35+
description: Run cargo fmt on files included in the commit. rustfmt should be installed before-hand.
36+
entry: cargo fmt --all --
37+
pass_filenames: true
38+
types: [file, rust]
39+
language: system
40+
- id: rust-clippy
41+
name: Rust clippy
42+
description: Run cargo clippy on files included in the commit. clippy should be installed before-hand.
43+
entry: cargo clippy --all-targets --all-features -- -Dclippy::all -Aclippy::redundant_closure
44+
pass_filenames: false
45+
types: [file, rust]
46+
language: system
47+
48+
default_language_version:
49+
python: python3

0 commit comments

Comments
 (0)