Skip to content

Commit fdf4678

Browse files
committed
ci: add ci
1 parent 160f65c commit fdf4678

3 files changed

Lines changed: 65 additions & 22 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v5
14+
- uses: dtolnay/rust-toolchain@master
15+
with:
16+
toolchain: nightly-2026-02-20
17+
components: clippy,rustfmt
18+
- uses: Swatinem/rust-cache@a84bfdc502f07db5a85dd9d7a30f91a931516cc5
19+
with:
20+
shared-key: cargo-build-ci-linux-latest
21+
prefix-key: ''
22+
add-rust-environment-hash-key: 'false'
23+
save-if: ${{ github.ref == 'refs/heads/main' }}
24+
- name: Run clippy
25+
run: cargo clippy -- -D warnings
26+
- name: Run rustfmt
27+
run: cargo fmt --all -- --check
28+
- name: Install TOML linter
29+
uses: taiki-e/cache-cargo-install-action@v2
30+
with:
31+
tool: taplo-cli@0.10.0
32+
- name: Run TOML linter and formatter
33+
run: |
34+
taplo lint
35+
taplo fmt --check

filen-relay/Cargo.toml

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ port_check = { version = "0.3.0", optional = true }
2323
chrono = { version = "0.4.43", features = ["serde"], optional = true }
2424
clap = { version = "4.5.56", features = ["derive", "env"], optional = true }
2525
axum-reverse-proxy = { version = "1.1.1", features = [
26-
"native-tls",
26+
"native-tls",
2727
], optional = true }
2828
wasm-cookies = "=0.2.1"
2929
serde_json = { version = "1.0.149", optional = true }
@@ -34,31 +34,33 @@ rand = { version = "0.10.0", optional = true }
3434
ftail = { version = "0.3.1", optional = true }
3535
log = { version = "0.4.29", optional = true }
3636
tempfile = { version = "3.27.0", optional = true }
37-
dioxus-primitives = { git = "https://github.com/DioxusLabs/components", version = "0.0.1", default-features = false, features = ["router"] }
37+
dioxus-primitives = { git = "https://github.com/DioxusLabs/components", version = "0.0.1", default-features = false, features = [
38+
"router",
39+
] }
3840
tower-sessions = { version = "0.15.0", optional = true }
3941

4042
[features]
4143
default = ["web", "server"]
4244
web = ["dioxus/web"]
4345
server = [
44-
"dioxus/server",
45-
"rusqlite",
46-
"filen-sdk-rs",
47-
"filen-rclone-wrapper",
48-
"filen-types",
49-
"tokio",
50-
"port_check",
51-
"chrono",
52-
"clap",
53-
"axum-reverse-proxy",
54-
"filen-cli",
55-
"rand",
56-
"serde_json",
57-
"base64",
58-
"http",
59-
"axum-core",
60-
"ftail",
61-
"log",
62-
"tempfile",
63-
"tower-sessions",
46+
"dioxus/server",
47+
"rusqlite",
48+
"filen-sdk-rs",
49+
"filen-rclone-wrapper",
50+
"filen-types",
51+
"tokio",
52+
"port_check",
53+
"chrono",
54+
"clap",
55+
"axum-reverse-proxy",
56+
"filen-cli",
57+
"rand",
58+
"serde_json",
59+
"base64",
60+
"http",
61+
"axum-core",
62+
"ftail",
63+
"log",
64+
"tempfile",
65+
"tower-sessions",
6466
]

taplo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[formatting]
2+
indent_string = " "
3+
allowed_blank_lines = 1
4+
align_comments = false
5+
6+
# cargo install taplo-cli && taplo lint && taplo fmt

0 commit comments

Comments
 (0)