-
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.
Separate packages for core lib and server
- Loading branch information
1 parent
f28dc55
commit 8908b41
Showing
86 changed files
with
6,084 additions
and
91 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,50 +1,7 @@ | ||
[package] | ||
name = "citadels" | ||
edition = "2021" | ||
default-run = "citadels" | ||
version = "0.7.1" | ||
|
||
[[bin]] | ||
name = "citadels" | ||
path = "src/main.rs" | ||
|
||
[dependencies] | ||
askama = { version = "0.12.1", default-features = false } | ||
axum = { version = "0.7.2", features = ["ws","macros"], default-features = true } | ||
axum-extra = { version = "0.9.0", features = ["cookie-private"], default-features = false } | ||
futures = { version = "0.3.30", default-features = false } | ||
http = { version = "1.0.0", default-features = false } | ||
rand = { version = "0.8.5", default-features = false } | ||
tokio = { version = "1.35.1", features = ["macros", "rt-multi-thread"] } | ||
tokio-stream = { version = "0.1.14", default-features = false } | ||
tower = "0.4.13" | ||
tower-http = { version = "0.5.0", features = ["fs", "trace"] } | ||
log = "0.4.20" | ||
env_logger = { version = "0.10.1", features = ["color"] } | ||
rand_xoshiro = "0.6.0" | ||
rand_core = { version = "0.6.4", features = ["getrandom"] } | ||
serde = { version = "1.0.195", features = ["derive", "rc"] } | ||
serde_json = "1.0.111" | ||
time = "0.3.31" | ||
dotenv = { version = "0.15.0", optional = true } | ||
axum-core = "0.4.3" | ||
serde_with = "3.5.0" | ||
tracing = { version = "0.1.40", default-features = false } | ||
macros = { path = "./macros"} | ||
reqwest = { version = "0.12.4", features = ["json"], default-features = false } | ||
anyhow = { version = "1.0.83", default-features = true } | ||
maud = { version = "0.26.0", features = ["axum"], default-features = false} | ||
arcstr = { version = "1.2.0", features = ["serde"], default-features = false } | ||
uuid = { version = "1.8.0", features = ["v4"] } | ||
thiserror = "1.0.61" | ||
|
||
[features] | ||
dev = [] | ||
dotenv = ["dep:dotenv"] | ||
|
||
# https://old.reddit.com/r/rust/comments/gvrgca/this_is_a_neat_trick_for_getting_good_runtime/ | ||
[profile.dev.package."*"] | ||
opt-level = 3 | ||
|
||
[profile.dev] | ||
opt-level = 0 | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"citadels_server", | ||
"citadels", | ||
"macros" | ||
] |
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
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,32 @@ | ||
[package] | ||
name = "citadels" | ||
edition = "2021" | ||
|
||
|
||
[dependencies] | ||
rand = { version = "0.8.5" } | ||
log = "0.4.20" | ||
env_logger = { version = "0.10.1", features = ["color"] } | ||
rand_xoshiro = "0.6.0" | ||
|
||
rand_core = { version = "0.6.4", features = ["getrandom"] } | ||
serde = { version = "1.0.195", features = ["derive", "rc"] } | ||
serde_json = "1.0.111" | ||
time = "0.3.31" | ||
dotenv = { version = "0.15.0", optional = true } | ||
serde_with = "3.5.0" | ||
tracing = { version = "0.1.40", default-features = false } | ||
macros = { path = "../macros"} | ||
reqwest = { version = "0.12.4", features = ["json"], default-features = false } | ||
anyhow = { version = "1.0.83", default-features = true } | ||
maud = { version = "0.26.0", features = ["axum"], default-features = false} | ||
arcstr = { version = "1.2.0", features = ["serde"], default-features = false } | ||
uuid = { version = "1.8.0", features = ["v4"] } | ||
thiserror = "1.0.61" | ||
|
||
[features] | ||
dev = [] | ||
dotenv = ["dep:dotenv"] | ||
|
||
[profile.dev] | ||
opt-level = 0 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,46 @@ | ||
[package] | ||
name = "citadels_server" | ||
edition = "2021" | ||
|
||
|
||
[dependencies] | ||
citadels = { path = "../citadels/" } | ||
askama = { version = "0.12.1", default-features = false } | ||
axum = { version = "0.7.2", features = ["ws","macros"], default-features = true } | ||
axum-extra = { version = "0.9.0", features = ["cookie-private"], default-features = false } | ||
futures = { version = "0.3.30", default-features = false } | ||
http = { version = "1.0.0", default-features = false } | ||
rand = { version = "0.8.5", default-features = false } | ||
tokio = { version = "1.35.1", features = ["macros", "rt-multi-thread"] } | ||
tokio-stream = { version = "0.1.14", default-features = false } | ||
tower = "0.4.13" | ||
tower-http = { version = "0.5.0", features = ["fs", "trace"] } | ||
log = "0.4.20" | ||
env_logger = { version = "0.10.1", features = ["color"] } | ||
rand_xoshiro = "0.6.0" | ||
rand_core = { version = "0.6.4", features = ["getrandom"] } | ||
serde = { version = "1.0.195", features = ["derive", "rc"] } | ||
serde_json = "1.0.111" | ||
time = "0.3.31" | ||
dotenv = { version = "0.15.0", optional = true } | ||
axum-core = "0.4.3" | ||
serde_with = "3.5.0" | ||
tracing = { version = "0.1.40", default-features = false } | ||
macros = { path = "../macros"} | ||
reqwest = { version = "0.12.4", features = ["json"], default-features = false } | ||
anyhow = { version = "1.0.83", default-features = true } | ||
maud = { version = "0.26.0", features = ["axum"], default-features = false} | ||
arcstr = { version = "1.2.0", features = ["serde"], default-features = false } | ||
uuid = { version = "1.8.0", features = ["v4"] } | ||
thiserror = "1.0.61" | ||
|
||
[features] | ||
dev = [] | ||
dotenv = ["dep:dotenv"] | ||
|
||
# https://old.reddit.com/r/rust/comments/gvrgca/this_is_a_neat_trick_for_getting_good_runtime/ | ||
[profile.dev.package."*"] | ||
opt-level = 3 | ||
|
||
[profile.dev] | ||
opt-level = 0 |
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,3 @@ | ||
pub mod markup; | ||
pub mod server; | ||
pub mod templates; |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions
12
src/server/routes.rs → citadels_server/src/server/routes.rs
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
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
File renamed without changes.
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
4 changes: 2 additions & 2 deletions
4
src/templates/filters.rs → citadels_server/src/templates/filters.rs
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
8 changes: 4 additions & 4 deletions
8
src/templates/game.rs → citadels_server/src/templates/game.rs
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
6 changes: 3 additions & 3 deletions
6
src/templates/game/menu.rs → citadels_server/src/templates/game/menu.rs
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
12 changes: 6 additions & 6 deletions
12
src/templates/game/menus.rs → citadels_server/src/templates/game/menus.rs
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
4 changes: 2 additions & 2 deletions
4
src/templates/lobby.rs → citadels_server/src/templates/lobby.rs
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.