mirror of
https://github.com/tokio-rs/axum.git
synced 2025-09-27 13:00:39 +00:00
chore(examples): split examples to its own workspace
This commit is contained in:
parent
7eabf7e645
commit
f4665d0a53
4
.github/workflows/CI.yml
vendored
4
.github/workflows/CI.yml
vendored
@ -23,6 +23,8 @@ jobs:
|
||||
save-if: ${{ github.ref == 'refs/heads/main' }}
|
||||
- name: Check
|
||||
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
|
||||
- name: Check
|
||||
run: cargo clippy --manifest-path examples/Cargo.toml --workspace --all-targets --all-features -- -D warnings
|
||||
- name: rustfmt
|
||||
run: cargo fmt --all --check
|
||||
|
||||
@ -93,6 +95,8 @@ jobs:
|
||||
save-if: ${{ github.ref == 'refs/heads/main' }}
|
||||
- name: Run tests
|
||||
run: cargo test --workspace --all-features --all-targets
|
||||
- name: Test examples
|
||||
run: cargo test --manifest-path examples/Cargo.toml --workspace --all-features --all-targets
|
||||
|
||||
# some examples don't support our MSRV so we only test axum itself on our MSRV
|
||||
test-nightly:
|
||||
|
3942
Cargo.lock
generated
3942
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,5 @@
|
||||
[workspace]
|
||||
members = ["axum", "axum-*", "examples/*"]
|
||||
# Only check / build main crates by default (check all with `--workspace`)
|
||||
default-members = ["axum", "axum-*"]
|
||||
# Example has been deleted, but README.md remains
|
||||
exclude = ["examples/async-graphql"]
|
||||
members = ["axum", "axum-*"]
|
||||
resolver = "2"
|
||||
|
||||
[workspace.package]
|
||||
|
6117
examples/Cargo.lock
generated
Normal file
6117
examples/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
46
examples/Cargo.toml
Normal file
46
examples/Cargo.toml
Normal file
@ -0,0 +1,46 @@
|
||||
[workspace]
|
||||
members = ["*"]
|
||||
# Example has been deleted, but README.md remains
|
||||
exclude = ["async-graphql", "target"]
|
||||
resolver = "2"
|
||||
|
||||
[workspace.package]
|
||||
rust-version = "1.75"
|
||||
|
||||
[workspace.lints.rust]
|
||||
unsafe_code = "forbid"
|
||||
|
||||
rust_2018_idioms = { level = "warn", priority = -1 }
|
||||
missing_debug_implementations = "warn"
|
||||
missing_docs = "warn"
|
||||
unreachable_pub = "warn"
|
||||
|
||||
[workspace.lints.clippy]
|
||||
type_complexity = "allow"
|
||||
|
||||
await_holding_lock = "warn"
|
||||
dbg_macro = "warn"
|
||||
empty_enum = "warn"
|
||||
enum_glob_use = "warn"
|
||||
exit = "warn"
|
||||
filter_map_next = "warn"
|
||||
fn_params_excessive_bools = "warn"
|
||||
if_let_mutex = "warn"
|
||||
imprecise_flops = "warn"
|
||||
inefficient_to_string = "warn"
|
||||
linkedlist = "warn"
|
||||
lossy_float_literal = "warn"
|
||||
macro_use_imports = "warn"
|
||||
match_wildcard_for_single_variants = "warn"
|
||||
mem_forget = "warn"
|
||||
needless_borrow = "warn"
|
||||
needless_continue = "warn"
|
||||
option_option = "warn"
|
||||
rest_pat_in_fully_bound_structs = "warn"
|
||||
str_to_string = "warn"
|
||||
suboptimal_flops = "warn"
|
||||
todo = "warn"
|
||||
uninlined_format_args = "warn"
|
||||
unnested_or_patterns = "warn"
|
||||
unused_self = "warn"
|
||||
verbose_file_reads = "warn"
|
Loading…
x
Reference in New Issue
Block a user