|
| 1 | +[package] |
| 2 | +name = "update" |
| 3 | +version = "0.2.0" |
| 4 | +edition = "2024" |
| 5 | +build = "build.rs" |
| 6 | + |
| 7 | +[dependencies] |
| 8 | +api-framework = { git = "https://github.com/KessokuTeaTime/api-framework", default-features = false, features = [ |
| 9 | + "framework", |
| 10 | +] } |
| 11 | +anyhow = "1.0.98" |
| 12 | +axum = "0.8.4" |
| 13 | +dotenvy = "0.15.7" |
| 14 | +serde = { version = "1.0.219", features = ["derive"] } |
| 15 | +tokio = { version = "1.47", features = ["rt-multi-thread", "process"] } |
| 16 | +tower-http = { version = "0.6.6", features = ["auth", "trace"] } |
| 17 | +tower-layer = "0.3.3" |
| 18 | +tracing = "0.1.41" |
| 19 | +tracing-subscriber = { version = "0.3.19", features = ["chrono"] } |
| 20 | +tracing-appender = "0.2.3" |
| 21 | +file-rotate = "0.8.0" |
| 22 | +clap = { version = "4.5.44", features = ["cargo"] } |
| 23 | +config-file = "0.2.3" |
| 24 | + |
| 25 | +[build-dependencies] |
| 26 | +anyhow = "1.0.98" |
| 27 | +vergen = { version = "9.0.6", features = ["build", "cargo", "rustc", "si"] } |
| 28 | + |
| 29 | +[workspace.lints.rust] |
| 30 | +missing-docs = "warn" |
| 31 | +missing-debug-implementations = "warn" |
| 32 | +let-underscore-drop = "warn" |
| 33 | +single-use-lifetimes = "warn" |
| 34 | +trivial-numeric-casts = "warn" |
| 35 | +elided-lifetimes-in-paths = "deny" |
| 36 | +unused-lifetimes = "forbid" |
| 37 | +unused-macro-rules = "warn" |
| 38 | +unused-qualifications = "warn" |
| 39 | +variant-size-differences = "warn" |
| 40 | +dyn-drop = "forbid" |
| 41 | +ellipsis-inclusive-range-patterns = "forbid" |
| 42 | +exported-private-dependencies = "forbid" |
| 43 | +uncommon-codepoints = "deny" |
| 44 | + |
| 45 | +[workspace.lints.clippy] |
| 46 | +missing-panics-doc = "warn" |
| 47 | +missing-errors-doc = "warn" |
| 48 | +cloned-instead-of-copied = "warn" |
| 49 | +future-not-send = "warn" |
| 50 | +if-not-else = "warn" |
| 51 | +if-then-some-else-none = "warn" |
| 52 | +impl-trait-in-params = "warn" |
| 53 | +macro-use-imports = "deny" |
| 54 | +exhaustive-enums = "warn" |
| 55 | +str-to-string = "warn" |
| 56 | +iter-without-into-iter = "warn" |
| 57 | +decimal-literal-representation = "warn" |
| 58 | +ref-as-ptr = "warn" |
| 59 | +unused-trait-names = "warn" |
| 60 | +unnecessary-semicolon = "warn" |
| 61 | +unnecessary-debug-formatting = "warn" |
| 62 | +too-long-first-doc-paragraph = "warn" |
| 63 | +ref-option = "warn" |
| 64 | +redundant-test-prefix = "warn" |
| 65 | +map-with-unused-argument-over-ranges = "warn" |
| 66 | +manual-midpoint = "warn" |
| 67 | +manual-is-power-of-two = "warn" |
| 68 | +ip-constant = "warn" |
| 69 | +elidable-lifetime-names = "warn" |
| 70 | +coerce-container-to-any = "warn" |
| 71 | +todo = "warn" |
| 72 | +inline-always = "warn" |
| 73 | +# multiple-crate-versions = "warn" |
| 74 | +use-self = "warn" |
| 75 | +useless-let-if-seq = "warn" |
| 76 | +suboptimal-flops = "warn" |
| 77 | +redundant-clone = "warn" |
| 78 | + |
| 79 | +[profile.release] |
| 80 | +opt-level = 3 |
| 81 | +split-debuginfo = "packed" |
| 82 | +strip = "symbols" |
| 83 | +lto = true |
| 84 | +panic = "unwind" |
| 85 | +codegen-units = 1 |
| 86 | + |
| 87 | +[lints] |
| 88 | +workspace = true |
| 89 | + |
| 90 | +[[bin]] |
| 91 | +name = "api-update" |
| 92 | +path = "src/main.rs" |
0 commit comments