generated from pulseflow/rust-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6441bd7
Showing
18 changed files
with
671 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# https://EditorConfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
indent_size = 4 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
charset = utf-8 | ||
|
||
[*.nix] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Rust | ||
# https://github.com/rust-lang/rust/blob/master/src/doc/style/style/whitespace.md | ||
[*.rs] | ||
insert_final_newline = false | ||
|
||
# yaml is the worst language in the world | ||
[*.{yaml,yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{.*,*.md,*.toml,*.yml,*.yaml}] | ||
indent_style = space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @pauliesnug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ko_fi: pauliesnug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: cargo | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "11:00" | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
time: "11:00" | ||
open-pull-requests-limit: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!-- Put any information about this PR up here --> | ||
|
||
<!-- Which issue does this PR close? --> | ||
<!-- If this PR does not have a corresponding issue, | ||
make sure one gets created before you create this PR. | ||
You can create a bug report or feature request at | ||
https://github.com/pulseflow/rust-template/issues/new/choose --> | ||
|
||
Closes #(issue) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,219 @@ | ||
# Created by https://www.toptal.com/developers/gitignore/api/c,c++,rust,cmake,linux,macos,windows,rust-analyzer,visualstudiocode,archlinuxpackages | ||
# Edit at https://www.toptal.com/developers/gitignore?templates=c,c++,rust,cmake,linux,macos,windows,rust-analyzer,visualstudiocode,archlinuxpackages | ||
|
||
### ArchLinuxPackages ### | ||
*.tar | ||
*.tar.* | ||
*.jar | ||
*.exe | ||
*.msi | ||
*.zip | ||
*.tgz | ||
*.log | ||
*.log.* | ||
*.sig | ||
|
||
pkg/ | ||
|
||
### C ### | ||
# Prerequisites | ||
*.d | ||
|
||
# Object files | ||
*.o | ||
*.ko | ||
*.obj | ||
*.elf | ||
|
||
# Linker output | ||
*.ilk | ||
*.map | ||
*.exp | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Libraries | ||
*.lib | ||
*.a | ||
*.la | ||
*.lo | ||
|
||
# Shared objects (inc. Windows DLLs) | ||
*.dll | ||
*.so | ||
*.so.* | ||
*.dylib | ||
|
||
# Executables | ||
*.out | ||
*.app | ||
*.i*86 | ||
*.x86_64 | ||
*.hex | ||
|
||
# Debug files | ||
*.dSYM/ | ||
*.su | ||
*.idb | ||
*.pdb | ||
|
||
# Kernel Module Compile Results | ||
*.mod* | ||
*.cmd | ||
.tmp_versions/ | ||
modules.order | ||
Module.symvers | ||
Mkfile.old | ||
dkms.conf | ||
|
||
### C++ ### | ||
# Prerequisites | ||
|
||
# Compiled Object files | ||
*.slo | ||
|
||
# Precompiled Headers | ||
|
||
# Compiled Dynamic libraries | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
|
||
# Executables | ||
|
||
### CMake ### | ||
CMakeLists.txt.user | ||
CMakeCache.txt | ||
CMakeFiles | ||
CMakeScripts | ||
Testing | ||
Makefile | ||
cmake_install.cmake | ||
install_manifest.txt | ||
compile_commands.json | ||
CTestTestfile.cmake | ||
_deps | ||
|
||
### CMake Patch ### | ||
# External projects | ||
*-prefix/ | ||
|
||
### Linux ### | ||
*~ | ||
|
||
# temporary files which can be created if a process still has a handle open of a deleted file | ||
.fuse_hidden* | ||
|
||
# KDE directory preferences | ||
.directory | ||
|
||
# Linux trash folder which might appear on any partition or disk | ||
.Trash-* | ||
|
||
# .nfs files are created when an open file is removed but is still being accessed | ||
.nfs* | ||
|
||
### macOS ### | ||
# General | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
### macOS Patch ### | ||
# iCloud generated files | ||
*.icloud | ||
|
||
### Rust ### | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
debug/ | ||
target/ | ||
|
||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries | ||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html | ||
Cargo.lock | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
# MSVC Windows builds of rustc generate these, which store debugging information | ||
|
||
### rust-analyzer ### | ||
# Can be generated by other build systems other than cargo (ex: bazelbuild/rust_rules) | ||
rust-project.json | ||
|
||
|
||
### VisualStudioCode ### | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
!.vscode/*.code-snippets | ||
|
||
# Local History for Visual Studio Code | ||
.history/ | ||
|
||
# Built Visual Studio Code Extensions | ||
*.vsix | ||
|
||
### VisualStudioCode Patch ### | ||
# Ignore all local history of files | ||
.history | ||
.ionide | ||
|
||
### Windows ### | ||
# Windows thumbnail cache files | ||
Thumbs.db | ||
Thumbs.db:encryptable | ||
ehthumbs.db | ||
ehthumbs_vista.db | ||
|
||
# Dump file | ||
*.stackdump | ||
|
||
# Folder config file | ||
[Dd]esktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msix | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/c,c++,rust,cmake,linux,macos,windows,rust-analyzer,visualstudiocode,archlinuxpackages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
max_width = 100 | ||
hard_tabs = true | ||
newline_style = "Unix" | ||
use_small_heuristics = "Default" | ||
reorder_imports = true | ||
imports_granularity = "Module" | ||
reorder_modules = true | ||
remove_nested_parens = true | ||
edition = "2024" | ||
merge_derives = true | ||
use_try_shorthand = false | ||
use_field_init_shorthand = false | ||
force_explicit_abi = true | ||
unstable_features = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = ["crates/*"] | ||
|
||
[workspace.package] | ||
authors = ["pauliesnug"] | ||
edition = "2024" | ||
homepage = "https://github.com/pulseflow/rust-template" | ||
repository = "https://github.com/pulseflow/rust-template" | ||
readme = "./README.md" | ||
license = "LicenseRef-OQL-1.2 OR MIT OR Apache-2.0" | ||
version = "0.1.0" | ||
|
||
[workspace.lints.clippy] | ||
all = { level = "warn", priority = -1 } | ||
pedantic = { level = "warn", priority = -1 } | ||
correctness = { level = "warn", priority = -1 } | ||
perf = { level = "warn", priority = -1 } | ||
style = { level = "warn", priority = -1 } | ||
suspicious = { level = "warn", priority = -1 } | ||
complexity = { level = "warn", priority = -1 } | ||
nursery = { level = "warn", priority = -1 } | ||
unnecessary_cast = "warn" | ||
cast_lossless = "warn" | ||
cast_possible_truncation = "warn" | ||
cast_possible_wrap = "warn" | ||
cast_sign_loss = "warn" | ||
dbg_macro = "warn" | ||
deprecated_cfg_attr = "warn" | ||
separated_literal_suffix = "warn" | ||
missing_errors_doc = "allow" | ||
future_not_send = "allow" | ||
module_name_repetitions = "allow" | ||
struct_field_names = "allow" | ||
cast_precision_loss = "allow" | ||
missing_panics_doc = "allow" | ||
|
||
[workspace.lints.rust] | ||
unused_qualifications = "warn" | ||
rust_2018_idioms = { level = "warn", priority = -1 } | ||
trivial_casts = "warn" | ||
trivial_numeric_casts = "warn" | ||
unused_allocation = "warn" | ||
unused_import_braces = "warn" | ||
deprecated = "warn" | ||
deprecated_in_future = "forbid" | ||
unused_must_use = "deny" | ||
|
||
[workspace.dependencies] | ||
tokio = { version = "1.41", features = ["full"] } | ||
serde = { version = "1.0", features = ["derive"] } | ||
chrono = { version = "0.4", features = ["serde"] } | ||
reqwest = { version = "0.12", features = ["stream", "json", "rustls-tls-native-roots"] } | ||
indexmap = { version = "2.6", features = ["serde"] } | ||
eyre = "0.6" | ||
color-eyre = { version = "0.6", default-features = false } | ||
bytes = "1.9" | ||
thiserror = "2.0" | ||
futures = "0.3.31" | ||
serde_json = "1.0" | ||
lazy_static = "1.5" | ||
dotenvy = "0.15" |
Oops, something went wrong.