-
Notifications
You must be signed in to change notification settings - Fork 17
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 #3 from dragly/dragly-2023-12-04-port-to-rust
Port Neuronify to Rust
- Loading branch information
Showing
2,681 changed files
with
10,643 additions
and
49,762 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[alias] | ||
run-wasm = "run --release --package run-wasm --" | ||
|
||
[build] | ||
rustflags = [ | ||
"--cfg=web_sys_unstable_apis" | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
name: Continuous integration | ||
env: | ||
RUSTC_WRAPPER: sccache | ||
jobs: | ||
ci: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
rust: | ||
- stable | ||
- 1.78.0 # Minimum supported Rust version | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add - | ||
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list | ||
sudo apt update | ||
sudo apt install vulkan-sdk | ||
sudo apt-get install libegl1-mesa-dev shaderc | ||
- name: sccache cache files | ||
uses: actions/[email protected] | ||
with: | ||
path: /home/runner/.cache/sccache | ||
key: ${{ matrix.rust }}-sccache-${{ github.sha }} | ||
restore-keys: | | ||
${{ matrix.rust }}-sccache | ||
- name: Download sccache | ||
run: | | ||
wget https://github.com/mozilla/sccache/releases/download/v0.2.15/sccache-v0.2.15-x86_64-unknown-linux-musl.tar.gz | ||
tar -xvzf sccache-v0.2.15-x86_64-unknown-linux-musl.tar.gz | ||
sudo cp sccache-v0.2.15-x86_64-unknown-linux-musl/sccache /usr/bin/sccache | ||
sudo chmod +x /usr/bin/sccache | ||
sccache --show-stats | ||
- name: Install toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
components: clippy, rustfmt | ||
- name: Check formatting | ||
run: cargo fmt --all --check | ||
- name: Check | ||
run: cargo check --all-features --all-targets | ||
- name: Build | ||
run: cargo build --all-features --all-targets | ||
- name: Test | ||
run: cargo test --all-features --all-targets | ||
- name: Clippy | ||
run: cargo clippy --all-features --all-targets -- -D warnings |
This file was deleted.
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,34 +1 @@ | ||
# C++ objects and libs | ||
|
||
*.slo | ||
*.lo | ||
*.o | ||
*.a | ||
*.la | ||
*.lai | ||
*.so | ||
*.dll | ||
*.dylib | ||
|
||
# Qt-es | ||
|
||
/.qmake.cache | ||
/.qmake.stash | ||
*.pro.user | ||
*.pro.user.* | ||
*.moc | ||
moc_*.cpp | ||
qrc_*.cpp | ||
ui_*.h | ||
Makefile* | ||
*-build-* | ||
|
||
# QtCreator | ||
|
||
*.autosave | ||
|
||
#QtCtreator Qml | ||
*.qmlproject.user | ||
*.qmlproject.user.* | ||
|
||
doc/html/* | ||
/target |
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.