Skip to content

Commit f64972f

Browse files
committed
dev
1 parent c545cd2 commit f64972f

15 files changed

Lines changed: 616 additions & 2 deletions

.gitattributes

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Basic settings
2+
* text=auto eol=lf
3+
4+
# Source code files
5+
*.rs text diff=rust
6+
*.toml text diff=toml
7+
8+
# Scripts and configuration files
9+
*.sh text eol=lf
10+
*.bat text eol=crlf
11+
*.cmd text eol=crlf
12+
*.json text
13+
*.yaml text
14+
*.xml text
15+
*.md text
16+
*.txt text
17+
18+
# Visual Studio files
19+
*.sln text eol=crlf
20+
*.vcxproj text eol=crlf
21+
*.vcxproj.filters text eol=crlf
22+
23+
# Binary files
24+
*.png binary
25+
*.jpg binary
26+
*.gif binary
27+
*.ico binary
28+
*.zip binary
29+
*.dll binary
30+
*.exe binary
31+
*.lib binary
32+
*.pdf binary
33+
34+
# Special handling
35+
*.json merge=union
36+
*.yaml merge=union
37+
*.xml merge=union

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "cargo"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"

.github/workflows/rust-publish.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish to crates.io
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
call-publish:
13+
uses: qntx/workflows/.github/workflows/rust-publish.yml@main
14+
with:
15+
package: "erc8004"
16+
secrets:
17+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.github/workflows/rust.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
call-ci:
14+
uses: qntx/workflows/.github/workflows/rust.yml@main

.github/workflows/stale.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Close Stale Issues and PRs
2+
3+
on:
4+
schedule:
5+
- cron: "30 1 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
close-stale:
10+
uses: qntx/workflows/.github/workflows/stale.yml@main

Cargo.toml

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
[workspace]
2+
members = ["erc8004"]
3+
default-members = ["erc8004"]
4+
resolver = "3"
5+
6+
[workspace.package]
7+
version = "0.1.0"
8+
edition = "2024"
9+
license = "MIT OR Apache-2.0"
10+
repository = "https://github.com/qntx/erc8004"
11+
12+
[workspace.dependencies]
13+
14+
[profile.release]
15+
codegen-units = 1
16+
lto = true
17+
panic = "abort"
18+
strip = true
19+
20+
[profile.dev]
21+
debug = true
22+
opt-level = 0
23+
24+
[profile.test]
25+
opt-level = 2
26+
27+
[profile.ci]
28+
debug = false
29+
inherits = "dev"
30+
31+
[profile.bench]
32+
debug = true
33+
inherits = "release"
34+
35+
[workspace.lints.rust]
36+
elided_lifetimes_in_paths = "warn"
37+
single_use_lifetimes = "warn"
38+
unused_lifetimes = "warn"
39+
missing_copy_implementations = "warn"
40+
missing_debug_implementations = "warn"
41+
missing_docs = "warn"
42+
trivial_casts = "warn"
43+
trivial_numeric_casts = "warn"
44+
variant_size_differences = "warn"
45+
unsafe_code = "warn"
46+
unused_qualifications = "warn"
47+
rust_2024_compatibility = { level = "warn", priority = -1 }
48+
unused_imports = "warn"
49+
unused_macro_rules = "warn"
50+
non_ascii_idents = "warn"
51+
non_camel_case_types = "warn"
52+
non_snake_case = "warn"
53+
non_upper_case_globals = "warn"
54+
55+
[workspace.lints.rustdoc]
56+
broken_intra_doc_links = "warn"
57+
private_intra_doc_links = "warn"
58+
missing_crate_level_docs = "warn"
59+
invalid_codeblock_attributes = "warn"
60+
invalid_html_tags = "warn"
61+
invalid_rust_codeblocks = "warn"
62+
bare_urls = "warn"
63+
unescaped_backticks = "warn"
64+
65+
[workspace.lints.clippy]
66+
cargo = { level = "warn", priority = -1 }
67+
complexity = { level = "warn", priority = -1 }
68+
correctness = { level = "deny", priority = -1 }
69+
nursery = { level = "warn", priority = -1 }
70+
pedantic = { level = "warn", priority = -1 }
71+
perf = { level = "warn", priority = -1 }
72+
style = { level = "warn", priority = -1 }
73+
suspicious = { level = "warn", priority = -1 }
74+
restriction = { level = "allow", priority = -1 }
75+
dbg_macro = "warn"
76+
print_stderr = "warn"
77+
print_stdout = "warn"
78+
todo = "warn"
79+
unimplemented = "warn"
80+
panic = "warn"
81+
unwrap_used = "warn"
82+
unwrap_in_result = "warn"
83+
expect_used = "allow"
84+
panic_in_result_fn = "warn"
85+
indexing_slicing = "allow"
86+
fallible_impl_from = "warn"
87+
missing_docs_in_private_items = "allow"
88+
missing_errors_doc = "warn"
89+
missing_panics_doc = "warn"
90+
missing_safety_doc = "warn"
91+
doc_markdown = "warn"
92+
exhaustive_enums = "allow"
93+
exhaustive_structs = "allow"
94+
must_use_candidate = "warn"
95+
return_self_not_must_use = "warn"
96+
fn_params_excessive_bools = "warn"
97+
struct_excessive_bools = "allow"
98+
cognitive_complexity = "warn"
99+
too_many_lines = "allow"
100+
excessive_nesting = "allow"
101+
clone_on_ref_ptr = "warn"
102+
redundant_clone = "warn"
103+
large_types_passed_by_value = "warn"
104+
implicit_hasher = "warn"
105+
cast_precision_loss = "allow"
106+
cast_possible_truncation = "warn"
107+
cast_sign_loss = "warn"
108+
cast_lossless = "warn"
109+
future_not_send = "warn"
110+
await_holding_lock = "warn"
111+
await_holding_refcell_ref = "warn"
112+
option_if_let_else = "warn"
113+
wildcard_enum_match_arm = "allow"
114+
match_wildcard_for_single_variants = "warn"
115+
match_same_arms = "warn"
116+
module_name_repetitions = "allow"
117+
similar_names = "allow"
118+
shadow_reuse = "allow"
119+
shadow_same = "allow"
120+
shadow_unrelated = "allow"
121+
multiple_crate_versions = "allow"
122+
cargo_common_metadata = "allow"
123+
significant_drop_tightening = "allow"
124+
used_underscore_binding = "warn"
125+
mem_forget = "warn"

0 commit comments

Comments
 (0)