-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
23 changed files
with
286 additions
and
77 deletions.
There are no files selected for viewing
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
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,30 +1,37 @@ | ||
[package] | ||
name = "rust-2048" | ||
version = "0.1.0" | ||
description = "It's a 2048 game written in Rust." | ||
authors = ["liu9293 <[email protected]>"] | ||
edition = "2021" | ||
# [package] | ||
# name = "rust-2048" | ||
# version = "0.1.0" | ||
# description = "It's a 2048 game written in Rust." | ||
# authors = ["liu9293 <[email protected]>"] | ||
# edition = "2021" | ||
|
||
[dependencies] | ||
dioxus-router = "0.3.0" | ||
rand = "0.8.5" | ||
getrandom = { version = "0.2", features = ["js"] } | ||
# [dependencies] | ||
# dioxus-router = "0.3.0" | ||
# rand = "0.8.5" | ||
# getrandom = { version = "0.2", features = ["js"] } | ||
|
||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
dioxus = "0.3.0" | ||
dioxus-desktop = "0.3.0" | ||
# [target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
# dioxus = "0.3.0" | ||
# dioxus-desktop = "0.3.0" | ||
|
||
[target.'cfg(target_arch = "wasm32")'.dependencies] | ||
dioxus = "0.3.2" | ||
dioxus-web = "0.3.2" | ||
# [target.'cfg(target_arch = "wasm32")'.dependencies] | ||
# dioxus = "0.3.2" | ||
# dioxus-web = "0.3.2" | ||
|
||
[package.metadata.bundle] | ||
name = "Rust 2048" | ||
identifier = "com.rust.kaixiaozao" | ||
version = "0.0.1" | ||
copyright = "Copyright (c) KaiXiaoZao 2023. All rights reserved." | ||
category = "Game" | ||
short_description = "2048 game" | ||
long_description = """ | ||
It's a 2048 game written in Rust. | ||
""" | ||
# [package.metadata.bundle] | ||
# name = "Rust 2048" | ||
# identifier = "com.rust.kaixiaozao" | ||
# version = "0.0.1" | ||
# copyright = "Copyright (c) KaiXiaoZao 2023. All rights reserved." | ||
# category = "Game" | ||
# short_description = "2048 game" | ||
# long_description = """ | ||
# It's a 2048 game written in Rust. | ||
# """ | ||
|
||
[workspace] | ||
members = [ | ||
"packages/client", | ||
"packages/shared", | ||
"packages/server" | ||
] |
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
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,38 @@ | ||
[package] | ||
name = "client" | ||
version = "0.1.0" | ||
description = "It's a 2048 game written in Rust." | ||
authors = ["liu9293 <[email protected]>"] | ||
edition = "2021" | ||
|
||
[dependencies] | ||
dioxus-router = "0.3.0" | ||
rand = "0.8.5" | ||
getrandom = { version = "0.2", features = ["js"] } | ||
futures = "0.3" | ||
reqwest = { version = "0.11", features = ["json"] } | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
log = "0.4" | ||
shared = { path = "../shared" } | ||
|
||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
dioxus = "0.3.0" | ||
dioxus-desktop = "0.3.0" | ||
|
||
[target.'cfg(target_arch = "wasm32")'.dependencies] | ||
dioxus = "0.3.2" | ||
dioxus-web = "0.3.2" | ||
wasm-logger = "0.2.0" | ||
console_error_panic_hook = "0.1.7" | ||
|
||
[package.metadata.bundle] | ||
name = "Rust 2048" | ||
identifier = "com.rust.kaixiaozao" | ||
version = "0.0.1" | ||
copyright = "Copyright (c) KaiXiaoZao 2023. All rights reserved." | ||
category = "Game" | ||
short_description = "2048 game" | ||
long_description = """ | ||
It's a 2048 game written in Rust. | ||
""" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[package] | ||
name = "server" | ||
version = "0.1.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
[dependencies] | ||
axum = { version = "0.6" } | ||
tokio = { version = "1.0", features = ["full"] } | ||
tower-http = { version = "0.3.0", features = ["cors"] } | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
shared = { path = "../shared" } |
Oops, something went wrong.