Skip to content

Commit

Permalink
fix: Building as library
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoh committed Oct 29, 2024
1 parent 30dc29a commit ef9c18f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
crates-io = "https://docs.rs/"

[target.aarch64-apple-darwin]
rustflags = ["-C", "target-cpu=native", "-Z", "tune-cpu=native", "-C", "strip=symbols", "-Z", "unstable-options"]
rustflags = ["-C", "target-cpu=native", "-C", "strip=symbols"]

[target.x86_64-apple-darwin]
rustflags = ["-C", "target-cpu=native", "-Z", "tune-cpu=native", "-C", "strip=symbols", "-Z", "unstable-options"]
rustflags = ["-C", "target-cpu=native", "-C", "strip=symbols"]

[target.x86_64-pc-windows-gnu]
rustflags = ["-C", "link-arg=-lpsapi", "-C", "link-arg=-lbcrypt", "-C", "target-cpu=native", "-Z", "tune-cpu=native", "-C", "strip=symbols", "-Z", "unstable-options"]
rustflags = ["-C", "target-cpu=native", "-C", "strip=symbols"]

[target.aarch64-unknown-linux-gnu]
rustflags = ["-C", "target-cpu=native", "-Z", "tune-cpu=native", "-C", "strip=symbols", "-Z", "unstable-options"]
rustflags = ["-C", "target-cpu=native", "-C", "strip=symbols"]

[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "target-cpu=native", "-Z", "tune-cpu=native", "-C", "strip=symbols", "-Z", "unstable-options"]
rustflags = ["-C", "target-cpu=native", "-C", "strip=symbols"]
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ edition = "2021"
[lib]
name = "vox"
path = "src/lib.rs"
crate-type=["rlib", "dylib", "staticlib"]
# crate-type=["rlib", "dylib", "staticlib"]

[[bin]]
name = "vox"
Expand Down
2 changes: 2 additions & 0 deletions _rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "stable"
2 changes: 0 additions & 2 deletions rust-toolchain.toml

This file was deleted.

0 comments on commit ef9c18f

Please sign in to comment.