Skip to content

Commit

Permalink
Update to latest + IconForge (#11)
Browse files Browse the repository at this point in the history
* Update time.dm (tgstation#130)

* Bump version major, due to breaking change in tgstation#130

* Try to fix the dependency issue

* Upgrade a bunch of dependencies (tgstation#134)

* Upgrade base64 to 0.21

* bump toml to 0.7.4

* Upgrade pathfinding to 4.2.1

* Upgrade git2 to 0.17.1

* update mysql crate to 24.0

* aho-corasic upgrade to 1.0 pt A
"automatic configuration is now the default."

* upgrade ahocorasic pt B

* Adds a redis reliable queue implementation (tgstation#133)

* adds project to vscode rust-analyzer config
it asked me to

* redis reliable queue implementation

* readme

* cleanup

* shit fixed

* proper redis response handling for lpop

* more clean

* okay better handling i GUESS

* updated redis crate, all my tests pass
breaking changes don't apply either

* update the cargo lock to 2.0.0

* ignore clippy for the redis_lpush match return

* fixes cellularnoise clippy lints

* dmi_strip_metadata won't remove alpha channel anymore (tgstation#136)

* pedantic and nursery clippy lints (tgstation#137)

* June `cargo update` (tgstation#138)

* `cargo update`

* update `const-random` to 0.1.15
(nothingburger change)

* Update the url packages (percent-encoding and url)
(still nothingburger)

* dashmap to 5.4

* rayon to 1.7

* Stop using deprecated chrono func (would panic)

* run `cargo update` again
apparently a lot of things did some releases

* put the once_cell version to 1.17

for some reason i missed it, ooops

* 2.0.1 (tgstation#139)

* add uniform precision to rust-g timestamp (tgstation#141)

* add precision to rust-g timestamp

* coping

* adds rustg_dmi_icon_states (tgstation#140)

* 2.1.0 (tgstation#143)

* Make mysql use the native rust tls stack by default (tgstation#144)

* 3.0.0 (tgstation#147)

* Some routine updates for 3.0.0 (tgstation#152)

routine package maintenance and upgrades - i went through the breaking changes and didn't see anything that looked like it affected us, only additions to public apis really

* Use gitoxide rather than libgit2 for the git module (tgstation#156)

* Adds Base64 decoding stuff (tgstation#154)

* More routine updates (tgstation#157)

* Updates `rustg_file_exists()` macro to remove user error (tgstation#158)

* Last little bit of updates (tgstation#159)

* v3.1.0 (tgstation#161)

* pathfinder: fix typo in rustg_remove_node_astar (tgstation#162)

* pathfinder: stringify args expecting numbers (tgstation#163)

* Re-add all features release builds

* Label linux builds

* IconForge

Start blending

Huge cleanup

Finish optimizing the thing

Finish the thing!!

Clean up a bit

Re-add 32-bit thing

Fix TOML sorting

Add dmsrc

Fix clippy suggestions

Clippy.. stop being mean

Cargo fmt + doc comments

Code cleanup

More cleanup, remove most unsafe unwrap()s, use Match syntax.

Remove unneccesarily verbose casting

Fix overlay blending

Cleanup with new DMI version

Cargo fmt

Leaf test, DynamicImage->RgbaImage, better Error handling, DashMap, and cleanup command

Fix

Further tree optimizations, hashing optimization, cache icostrings more effectively.

Optimize unique_icons insertion a little

Fix macro

Little more cleanup

Add to README

Update dmi, add caching logic.

Address reviews

Cleanup panic unwind

Fix lint failure

---------

Co-authored-by: Zephyr <[email protected]>
Co-authored-by: oranges <[email protected]>
Co-authored-by: ZeWaka <[email protected]>
Co-authored-by: DTraitor <[email protected]>
Co-authored-by: silicons <[email protected]>
Co-authored-by: Lucy <[email protected]>
Co-authored-by: AffectedArc07 <[email protected]>
Co-authored-by: Kapu1178 <[email protected]>
Co-authored-by: vvvv-vvvv <[email protected]>
  • Loading branch information
10 people committed Dec 28, 2023
1 parent dc99f9d commit 1b1bbec
Show file tree
Hide file tree
Showing 34 changed files with 3,621 additions and 818 deletions.
131 changes: 68 additions & 63 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,91 +2,96 @@ name: rust-g
on:
push:
branches:
- current-bee
- current-bee
pull_request:
branches:
- current-bee
- current-bee
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: i686-pc-windows-msvc
- name: Build (all features)
uses: actions-rs/cargo@v1
targets: i686-pc-windows-msvc
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v2

- name: Clippy (all features)
run: cargo clippy --target i686-pc-windows-msvc --features all --locked -- -D warnings

- name: Rustfmt
run: cargo fmt -- --check

- name: Build (release) (all features)
run: cargo build --target i686-pc-windows-msvc --locked --release --features all

- uses: actions/upload-artifact@v3
with:
toolchain: stable
command: build
args: --target i686-pc-windows-msvc --release --all-features
- name: Upload artifact (all features)
uses: actions/upload-artifact@v1
name: Windows Build (All Features)
path: |
target/i686-pc-windows-msvc/release/rust_g.dll
target/i686-pc-windows-msvc/release/rust_g.pdb
target/rust_g.dm
- name: Build (release) (default features)
run: cargo build --target i686-pc-windows-msvc --locked --release

- uses: actions/upload-artifact@v3
with:
name: full_rust_g.dll
path: target/i686-pc-windows-msvc/release/rust_g.dll
- name: Build (release)
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: build
args: --target i686-pc-windows-msvc --release
- name: Upload artifact (release)
uses: actions/upload-artifact@v1
with:
name: rust_g.dll
path: target/i686-pc-windows-msvc/release/rust_g.dll
name: Windows Build (Default Features)
path: |
target/i686-pc-windows-msvc/release/rust_g.dll
target/i686-pc-windows-msvc/release/rust_g.pdb
target/rust_g.dm
build-linux:
runs-on: ubuntu-20.04
env:
BYOND_MAJOR: 513
BYOND_MINOR: 1521
PKG_CONFIG_ALLOW_CROSS: 1
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install g++-multilib zlib1g-dev:i386 pkg-config libssl-dev:i386 libssl-dev libssl1.1:i386
sudo apt-get install libgcc-s1:i386 g++-multilib zlib1g-dev:i386
./scripts/install_byond.sh
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: i686-unknown-linux-gnu
- name: Build (Debug)
uses: actions-rs/cargo@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
command: build
args: --target i686-unknown-linux-gnu
- name: Run tests
uses: actions-rs/cargo@v1
targets: i686-unknown-linux-gnu

- uses: Swatinem/rust-cache@v2

- name: Check (all features)
run: cargo check --target i686-unknown-linux-gnu --locked --features all

- name: Build (release) (all features)
run: cargo build --target i686-unknown-linux-gnu --locked --features all

- uses: actions/upload-artifact@v3
with:
toolchain: stable
command: test
args: --target i686-unknown-linux-gnu
name: Linux Build (All Features)
path: |
target/i686-unknown-linux-gnu/release/librust_g.so
target/rust_g.dm
- name: Run tests (all features)
run: cargo test --target i686-unknown-linux-gnu --locked --features all
env:
BYOND_BIN: /home/runner/BYOND/byond/bin
- name: Build (all features)
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: build
args: --target i686-unknown-linux-gnu --release --all-features
- name: Upload artifact (all features)
uses: actions/upload-artifact@v1
with:
name: full_librust_g.so
path: target/i686-unknown-linux-gnu/release/librust_g.so
- name: Build (release)
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: build
args: --target i686-unknown-linux-gnu --release
- name: Upload artifact (release)
uses: actions/upload-artifact@v1

- name: Build (release) (default features)
run: cargo build --target i686-unknown-linux-gnu --locked --release

- uses: actions/upload-artifact@v3
with:
name: librust_g.so
path: target/i686-unknown-linux-gnu/release/librust_g.so
name: Linux Build (Default Features)
path: |
target/i686-unknown-linux-gnu/release/librust_g.so
target/rust_g.dm
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"rust-analyzer.cargo.target": "i686-pc-windows-msvc"
"rust-analyzer.cargo.target": "i686-pc-windows-msvc",
"rust-analyzer.linkedProjects": [
".\\Cargo.toml"
]
}
Loading

0 comments on commit 1b1bbec

Please sign in to comment.