This commit is contained in:
parent
ac3d47c83b
commit
cf7e2f12ff
3 changed files with 55 additions and 0 deletions
50
.cargo/config.toml
Normal file
50
.cargo/config.toml
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
# This file is based on Bevy's fast builds config: https://github.com/bevyengine/bevy/blob/main/.cargo/config_fast_builds.toml
|
||||||
|
|
||||||
|
# Add the contents of this file to `config.toml` to enable "fast build" configuration. Please read the notes below.
|
||||||
|
[target.x86_64-unknown-linux-gnu]
|
||||||
|
linker = "clang"
|
||||||
|
rustflags = [
|
||||||
|
# LLD linker
|
||||||
|
#
|
||||||
|
# You may need to install it:
|
||||||
|
#
|
||||||
|
# - Ubuntu: `sudo apt-get install lld clang`
|
||||||
|
# - Fedora: `sudo dnf install lld clang`
|
||||||
|
# - Arch: `sudo pacman -S lld clang`
|
||||||
|
"-Clink-arg=-fuse-ld=lld",
|
||||||
|
|
||||||
|
# Mold linker
|
||||||
|
#
|
||||||
|
# You may need to install it:
|
||||||
|
#
|
||||||
|
# - Ubuntu: `sudo apt-get install mold clang`
|
||||||
|
# - Fedora: `sudo dnf install mold clang`
|
||||||
|
# - Arch: `sudo pacman -S mold clang`
|
||||||
|
# "-Clink-arg=-fuse-ld=mold",
|
||||||
|
|
||||||
|
# Nightly
|
||||||
|
"-Zshare-generics=y",
|
||||||
|
]
|
||||||
|
|
||||||
|
# NOTE: you must install [Mach-O LLD Port](https://lld.llvm.org/MachO/index.html) on mac. you can easily do this by installing llvm which includes lld with the "brew" package manager:
|
||||||
|
# `brew install llvm`
|
||||||
|
[target.x86_64-apple-darwin]
|
||||||
|
rustflags = ["-Zshare-generics=y"]
|
||||||
|
|
||||||
|
[target.aarch64-apple-darwin]
|
||||||
|
rustflags = ["-Zshare-generics=y"]
|
||||||
|
|
||||||
|
[target.x86_64-pc-windows-msvc]
|
||||||
|
linker = "rust-lld.exe"
|
||||||
|
rustflags = [
|
||||||
|
# This needs to be off if you use dynamic linking on Windows.
|
||||||
|
"-Zshare-generics=n",
|
||||||
|
]
|
||||||
|
|
||||||
|
# Optional: Uncommenting the following improves compile times, but reduces the amount of debug info to 'line number tables only'
|
||||||
|
# In most cases the gains are negligible, but if you are on macos and have slow compile times you should see significant gains.
|
||||||
|
[profile.dev]
|
||||||
|
debug = 1
|
||||||
|
opt-level = 1
|
||||||
|
[profile.dev.package."*"]
|
||||||
|
opt-level = 3
|
||||||
|
|
@ -20,6 +20,10 @@ jobs:
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
|
- name: install requirements for fast-build
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install lld clang mold
|
||||||
|
|
||||||
- name: Build release
|
- name: Build release
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
|
|
|
||||||
|
|
@ -289,6 +289,7 @@ impl ViaVersionPlugin {
|
||||||
let Ok(account) = query.get_mut(event.entity) else {
|
let Ok(account) = query.get_mut(event.entity) else {
|
||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
|
warn!("via version magic, {hash}");
|
||||||
|
|
||||||
// this makes it so azalea doesn't reply to the query so we can handle it
|
// this makes it so azalea doesn't reply to the query so we can handle it
|
||||||
// ourselves
|
// ourselves
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue