-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3977 from KBVE/alpha
Preparing Beta Branch
- Loading branch information
Showing
12 changed files
with
178 additions
and
5 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
Empty file.
Empty file.
35 changes: 35 additions & 0 deletions
35
.github/workflows/resuable/packages/rust-publish-crate.yml
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,35 @@ | ||
name: Rust Crate Publish | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
package: | ||
required: true | ||
type: string | ||
secrets: | ||
CRATES_TOKEN: | ||
required: true | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: write | ||
packages: write | ||
issues: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Rust ToolChain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Cargo Login | ||
run: cargo login ${{ secrets.CRATES_TOKEN }} | ||
|
||
- name: Cargo Publish | ||
run: | | ||
cargo publish -p ${{ inputs.package }} |
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
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
Binary file modified
BIN
+0 Bytes
(100%)
...rust_godot_towerdefense/godot/addons/tower-defense/macos/librust_godot_towerdefense.dylib
Binary file not shown.
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,51 @@ | ||
[package] | ||
name = "q" | ||
authors = ["kbve", "h0lybyte"] | ||
version = "0.1.0" | ||
edition = "2021" | ||
license = "MIT" | ||
description = "Q is a Godot Helper Crate." | ||
homepage = "https://kbve.com/" | ||
repository = "https://github.com/KBVE/kbve/tree/main/packages/erust" | ||
readme = "README.md" | ||
rust-version = "1.75" | ||
|
||
[lib] | ||
crate-type = ["cdylib"] | ||
|
||
[dependencies] | ||
rand = "0.8" | ||
godot = { version = "0.2.2", features = ["experimental-wasm", "lazy-function-tables"] } | ||
bevy_ecs = { version = "0.15.1", features = ["default"] } | ||
rstar = "0.12.2" | ||
papaya = "0.1.8" | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
|
||
|
||
[target."cfg(target_os = \"macos\")".dependencies] | ||
objc2 = "0.6.0" | ||
wry = { version = "0.46.2", features = ["transparent", "devtools"] } | ||
raw-window-handle = "0.6.2" | ||
http = "1.1.0" | ||
infer = "0.16.0" | ||
|
||
|
||
[target."cfg(target_os = \"windows\")".dependencies] | ||
windows = { version = "0.59", features = [ | ||
"Data_Xml_Dom", | ||
"Win32_Security", | ||
"Win32_System_Threading", | ||
"Win32_UI_WindowsAndMessaging", | ||
] } | ||
wry = { version = "0.48.1", features = ["transparent", "devtools"] } | ||
raw-window-handle = "0.6.2" | ||
http = "1.1.0" | ||
infer = "0.16.0" | ||
|
||
|
||
[profile.release] | ||
opt-level = 'z' | ||
lto = "fat" | ||
codegen-units = 1 | ||
debug = false |
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 @@ | ||
## Q | ||
|
||
Q is a Godot Extensions Helper Library |
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 @@ | ||
{ | ||
"name": "q", | ||
"$schema": "../../../node_modules/nx/schemas/project-schema.json", | ||
"projectType": "library", | ||
"sourceRoot": "packages/rust/q/src", | ||
"targets": { | ||
"build": { | ||
"executor": "@monodon/rust:build", | ||
"outputs": [ | ||
"{options.target-dir}" | ||
], | ||
"options": { | ||
"target-dir": "dist/target/q" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"release": true | ||
} | ||
} | ||
}, | ||
"test": { | ||
"executor": "@monodon/rust:test", | ||
"outputs": [ | ||
"{options.target-dir}" | ||
], | ||
"options": { | ||
"target-dir": "dist/target/q" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"release": true | ||
} | ||
} | ||
}, | ||
"lint": { | ||
"executor": "@monodon/rust:lint", | ||
"outputs": [ | ||
"{options.target-dir}" | ||
], | ||
"options": { | ||
"target-dir": "dist/target/q" | ||
} | ||
} | ||
}, | ||
"tags": [] | ||
} |
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,8 @@ | ||
#[cfg(test)] | ||
mod tests { | ||
#[test] | ||
fn it_works() { | ||
let result = 2 + 2; | ||
assert_eq!(result, 4); | ||
} | ||
} |