Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ categories = ["development-tools::profiling"]
license = "Apache-2.0"

edition = "2021"
rust-version = "1.74"
rust-version = "1.77"

# Required to ensure metadata is visible to dependents. See:
# https://doc.rust-lang.org/cargo/reference/build-scripts.html
# https://github.com/rust-lang/cargo/issues/7846
links="legion_prof_viewer"

[features]
default = []
Expand Down
10 changes: 10 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use std::env;
use std::process::Command;
use std::path::Path;

fn main() {
let out_dir = env::var_os("OUT_DIR").unwrap();
let dist_dir = Path::new(&out_dir).join("dist");

Command::new("trunk").args(["build", "--release", "--dist"]).arg(dist_dir).spawn().expect("Trunk failed");
}
Loading