Skip to content

Commit a8d6a67

Browse files
committed
migrate
1 parent 6a4486f commit a8d6a67

200 files changed

Lines changed: 41318 additions & 199 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[alias]
2+
xtask = "run --quiet --manifest-path xtask/Cargo.toml --"

.codecov.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ codecov:
22
require_ci_to_pass: false
33

44
ignore:
5-
- **benches/*
6-
- **examples/*
7-
- **tests/*
5+
- "**benches/*"
6+
- "**examples/*"
7+
- "**tests/*"
88

99
coverage:
1010
status:

.github/workflows/ci.yml

Lines changed: 5 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ on:
1818
- '**.md'
1919
- '**.txt'
2020
workflow_dispatch:
21-
schedule: [cron: "0 1 */7 * *"]
21+
schedule:
22+
- cron: "0 1 1 * *"
2223

2324
env:
2425
CARGO_TERM_COLOR: always
@@ -55,7 +56,7 @@ jobs:
5556
- name: Install cargo-hack
5657
run: cargo install cargo-hack
5758
- name: Apply clippy lints
58-
run: cargo hack clippy --each-feature --exclude-no-default-features
59+
run: cargo hack clippy --each-feature
5960

6061
# Run tests on some extra platforms
6162
cross:
@@ -125,7 +126,7 @@ jobs:
125126
- name: Install cargo-hack
126127
run: cargo install cargo-hack
127128
- name: Run build
128-
run: cargo hack build --feature-powerset --exclude-no-default-features
129+
run: cargo hack build --each-feature
129130

130131
test:
131132
name: test
@@ -154,7 +155,7 @@ jobs:
154155
- name: Install cargo-hack
155156
run: cargo install cargo-hack
156157
- name: Run test
157-
run: cargo hack test --feature-powerset --exclude-no-default-features --exclude-features loom
158+
run: cargo hack test --each-feature
158159

159160
sanitizer:
160161
name: sanitizer
@@ -250,61 +251,6 @@ jobs:
250251
run: |
251252
bash ci/miri_sb.sh "${{ matrix.target }}"
252253
253-
loom:
254-
name: loom
255-
strategy:
256-
matrix:
257-
os:
258-
- ubuntu-latest
259-
- macos-latest
260-
- windows-latest
261-
runs-on: ${{ matrix.os }}
262-
steps:
263-
- uses: actions/checkout@v6
264-
- name: Cache cargo build and registry
265-
uses: actions/cache@v5
266-
with:
267-
path: |
268-
~/.cargo/registry
269-
~/.cargo/git
270-
target
271-
key: ${{ runner.os }}-loom-${{ hashFiles('**/Cargo.lock') }}
272-
restore-keys: |
273-
${{ runner.os }}-loom-
274-
- name: Install Rust
275-
run: rustup update nightly --no-self-update && rustup default nightly
276-
- name: Loom tests
277-
run: cargo test --tests --features loom
278-
279-
# valgrind:
280-
# name: valgrind
281-
# runs-on: ubuntu-latest
282-
# steps:
283-
# - uses: actions/checkout@v6
284-
# - name: Cache cargo build and registry
285-
# uses: actions/cache@v5
286-
# with:
287-
# path: |
288-
# ~/.cargo/registry
289-
# ~/.cargo/git
290-
# target
291-
# key: ubuntu-latest-valgrind-${{ hashFiles('**/Cargo.lock') }}
292-
# restore-keys: |
293-
# ubuntu-latest-valgrind-
294-
# - name: Install Rust
295-
# run: rustup update stable && rustup default stable
296-
# - name: Install Valgrind
297-
# run: |
298-
# sudo apt-get update -y
299-
# sudo apt-get install -y valgrind
300-
# # Uncomment and customize when you have binaries to test:
301-
# # - name: cargo build foo
302-
# # run: cargo build --bin foo
303-
# # working-directory: integration
304-
# # - name: Run valgrind foo
305-
# # run: valgrind --error-exitcode=1 --leak-check=full --show-leak-kinds=all ./target/debug/foo
306-
# # working-directory: integration
307-
308254
coverage:
309255
name: coverage
310256
runs-on: ubuntu-latest
@@ -315,7 +261,6 @@ jobs:
315261
- cross
316262
- test
317263
- sanitizer
318-
- loom
319264
steps:
320265
- uses: actions/checkout@v6
321266
- name: Install Rust

.github/workflows/loc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
await github.rest.gists.update({
5252
gist_id: gistId,
5353
files: {
54-
"template-rs": {
54+
"videoframe": {
5555
content: output
5656
}
5757
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@
1616

1717
/target
1818
Cargo.lock
19+
20+
**.claude/
21+
**docs/

Cargo.toml

Lines changed: 8 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,8 @@
1-
[package]
2-
name = "template-rs"
3-
version = "0.0.0"
4-
edition = "2021"
5-
repository = "https://github.com/al8n/template-rs"
6-
homepage = "https://github.com/al8n/template-rs"
7-
documentation = "https://docs.rs/template-rs"
8-
description = "A template for creating Rust open-source repo on GitHub"
9-
license = "MIT OR Apache-2.0"
10-
rust-version = "1.73"
11-
12-
[[bench]]
13-
path = "benches/foo.rs"
14-
name = "foo"
15-
harness = false
16-
17-
[features]
18-
default = ["std"]
19-
alloc = []
20-
std = []
21-
22-
[dependencies]
23-
24-
[dev-dependencies]
25-
criterion = "0.8"
26-
tempfile = "3"
27-
28-
[profile.bench]
29-
opt-level = 3
30-
debug = false
31-
codegen-units = 1
32-
lto = 'thin'
33-
incremental = false
34-
debug-assertions = false
35-
overflow-checks = false
36-
rpath = false
37-
38-
[package.metadata.docs.rs]
39-
all-features = true
40-
rustdoc-args = ["--cfg", "docsrs"]
41-
42-
[lints.rust]
43-
rust_2018_idioms = "warn"
44-
single_use_lifetimes = "warn"
45-
unexpected_cfgs = { level = "warn", check-cfg = [
46-
'cfg(all_tests)',
47-
'cfg(tarpaulin)',
48-
] }
1+
[workspace]
2+
members = ["xtask", "videoframe"]
3+
resolver = "3"
4+
5+
[workspace.lints.rust]
6+
rust_2018_idioms = "warn"
7+
single_use_lifetimes = "warn"
8+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(all_tests)', 'cfg(tarpaulin)'] }

README-zh_CN.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)