Skip to content

Commit

Permalink
Merge pull request #3 from dragly/dragly-2023-12-04-port-to-rust
Browse files Browse the repository at this point in the history
Port Neuronify to Rust
  • Loading branch information
dragly authored Aug 24, 2024
2 parents 3f908f2 + f33cf85 commit 6b1acc5
Show file tree
Hide file tree
Showing 2,681 changed files with 10,643 additions and 49,762 deletions.
7 changes: 7 additions & 0 deletions .cargo/config.toml
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"
]
21 changes: 0 additions & 21 deletions .docker/Dockerfile

This file was deleted.

3 changes: 0 additions & 3 deletions .dockerignore

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/build.yml
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
71 changes: 0 additions & 71 deletions .github/workflows/push.yml

This file was deleted.

35 changes: 1 addition & 34 deletions .gitignore
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 removed .gitmodules
Empty file.
8 changes: 0 additions & 8 deletions .snapcontents/bin/custom-qt-helper

This file was deleted.

Loading

0 comments on commit 6b1acc5

Please sign in to comment.