aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-07 21:31:37 +0000
committerFuwn <[email protected]>2022-03-07 21:31:37 +0000
commit82b7e5f3b0f1bc8537e1fda97626cc704371aff8 (patch)
treeb78fd933e80a0dcd8a2b6d2f6d3ef7c15e0ae597
parentrefactor: file case (diff)
downloadapi-worker-82b7e5f3b0f1bc8537e1fda97626cc704371aff8.tar.xz
api-worker-82b7e5f3b0f1bc8537e1fda97626cc704371aff8.zip
chore(rust): update rust stuff
-rw-r--r--Cargo.toml11
-rw-r--r--rust-toolchain.toml2
-rw-r--r--rustfmt.toml10
3 files changed, 13 insertions, 10 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 127ecd6..67fdadb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,14 +1,17 @@
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
[package]
-name = "senpy-api"
+name = "api-worker"
version = "0.1.0"
authors = ["Fuwn <[email protected]>"]
edition = "2021"
-#description = ""
+description = ""
readme = "README.md"
-homepage = "https://github.com/senpy-club/api"
-repository = "https://github.com/senpy-club/api"
+homepage = "https://github.com/senpy-club/api-worker"
+repository = "https://github.com/senpy-club/api-worker"
license = "GPL-3.0-only"
keywords = ["rust", "anime", "senpy"]
+categories = []
publish = false
[dependencies]
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
index 09396e5..22a9829 100644
--- a/rust-toolchain.toml
+++ b/rust-toolchain.toml
@@ -1,2 +1,2 @@
[toolchain]
-channel = "nightly-2021-12-04"
+channel = "nightly-2022-02-22"
diff --git a/rustfmt.toml b/rustfmt.toml
index 6a5c54c..cdca26c 100644
--- a/rustfmt.toml
+++ b/rustfmt.toml
@@ -1,15 +1,15 @@
condense_wildcard_suffixes = true
-edition = "2018"
+edition = "2021"
enum_discrim_align_threshold = 20
-error_on_line_overflow = true
-error_on_unformatted = true
+# error_on_line_overflow = true
+# error_on_unformatted = true
fn_single_line = true
force_multiline_blocks = true
format_code_in_doc_comments = true
format_macro_matchers = true
format_strings = true
imports_layout = "HorizontalVertical"
-license_template_path = ".license_template"
+# license_template_path = ".license_template"
match_arm_blocks = false
imports_granularity = "Crate"
newline_style = "Unix"
@@ -19,7 +19,7 @@ reorder_impl_items = true
group_imports = "StdExternalCrate"
reorder_modules = true
report_fixme = "Always"
-#report_todo = "Always"
+# report_todo = "Always"
struct_field_align_threshold = 20
struct_lit_single_line = false
tab_spaces = 2