mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-14 20:58:36 -07:00
global: per crate build.rs
This commit is contained in:
@@ -67,11 +67,3 @@ cargo-dist-version = "0.29.0"
|
|||||||
ci = "github"
|
ci = "github"
|
||||||
installers = []
|
installers = []
|
||||||
targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "x86_64-unknown-linux-gnu"]
|
targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
# [workspace.metadata.dist.github-custom-runners]
|
|
||||||
# global = "ubuntu-latest"
|
|
||||||
# aarch64-apple-darwin.runner = "macos-14"
|
|
||||||
# x86_64-unknown-linux-gnu.runner = "ubuntu-latest"
|
|
||||||
# x86_64-unknown-linux-gnu.container = { image = "quay.io/pypa/manylinux_2_28_x86_64", host = "x86_64-unknown-linux-musl" }
|
|
||||||
# aarch64-unknown-linux-gnu.runner = "ubuntu-latest"
|
|
||||||
# aarch64-unknown-linux-gnu.container = { image = "quay.io/pypa/manylinux_2_28_x86_64", host = "x86_64-unknown-linux-musl" }
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ homepage.workspace = true
|
|||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
full = [
|
full = [
|
||||||
|
|||||||
8
crates/brk/build.rs
Normal file
8
crates/brk/build.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let profile = std::env::var("PROFILE").unwrap_or_default();
|
||||||
|
|
||||||
|
if profile == "release" {
|
||||||
|
println!("cargo:rustc-flag=-C");
|
||||||
|
println!("cargo:rustc-flag=target-cpu=native");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@ edition.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = { workspace = true }
|
log = { workspace = true }
|
||||||
|
|||||||
8
crates/brk_bundler/build.rs
Normal file
8
crates/brk_bundler/build.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let profile = std::env::var("PROFILE").unwrap_or_default();
|
||||||
|
|
||||||
|
if profile == "release" {
|
||||||
|
println!("cargo:rustc-flag=-C");
|
||||||
|
println!("cargo:rustc-flag=target-cpu=native");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@ edition.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitcoincore-rpc = { workspace = true }
|
bitcoincore-rpc = { workspace = true }
|
||||||
|
|||||||
8
crates/brk_cli/build.rs
Normal file
8
crates/brk_cli/build.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let profile = std::env::var("PROFILE").unwrap_or_default();
|
||||||
|
|
||||||
|
if profile == "release" {
|
||||||
|
println!("cargo:rustc-flag=-C");
|
||||||
|
println!("cargo:rustc-flag=target-cpu=native");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@ edition.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitcoin = { workspace = true }
|
bitcoin = { workspace = true }
|
||||||
|
|||||||
8
crates/brk_computer/build.rs
Normal file
8
crates/brk_computer/build.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let profile = std::env::var("PROFILE").unwrap_or_default();
|
||||||
|
|
||||||
|
if profile == "release" {
|
||||||
|
println!("cargo:rustc-flag=-C");
|
||||||
|
println!("cargo:rustc-flag=target-cpu=native");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@ edition.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
brk_vecs = { workspace = true }
|
brk_vecs = { workspace = true }
|
||||||
|
|||||||
8
crates/brk_error/build.rs
Normal file
8
crates/brk_error/build.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let profile = std::env::var("PROFILE").unwrap_or_default();
|
||||||
|
|
||||||
|
if profile == "release" {
|
||||||
|
println!("cargo:rustc-flag=-C");
|
||||||
|
println!("cargo:rustc-flag=target-cpu=native");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@ edition.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
brk_error = { workspace = true }
|
brk_error = { workspace = true }
|
||||||
|
|||||||
8
crates/brk_fetcher/build.rs
Normal file
8
crates/brk_fetcher/build.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let profile = std::env::var("PROFILE").unwrap_or_default();
|
||||||
|
|
||||||
|
if profile == "release" {
|
||||||
|
println!("cargo:rustc-flag=-C");
|
||||||
|
println!("cargo:rustc-flag=target-cpu=native");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@ edition.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitcoin = { workspace = true }
|
bitcoin = { workspace = true }
|
||||||
|
|||||||
8
crates/brk_indexer/build.rs
Normal file
8
crates/brk_indexer/build.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let profile = std::env::var("PROFILE").unwrap_or_default();
|
||||||
|
|
||||||
|
if profile == "release" {
|
||||||
|
println!("cargo:rustc-flag=-C");
|
||||||
|
println!("cargo:rustc-flag=target-cpu=native");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@ edition.workspace = true
|
|||||||
version.workspace = true
|
version.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
brk_computer = { workspace = true }
|
brk_computer = { workspace = true }
|
||||||
|
|||||||
8
crates/brk_interface/build.rs
Normal file
8
crates/brk_interface/build.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let profile = std::env::var("PROFILE").unwrap_or_default();
|
||||||
|
|
||||||
|
if profile == "release" {
|
||||||
|
println!("cargo:rustc-flag=-C");
|
||||||
|
println!("cargo:rustc-flag=target-cpu=native");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@ edition.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
env_logger = "0.11.8"
|
env_logger = "0.11.8"
|
||||||
|
|||||||
8
crates/brk_logger/build.rs
Normal file
8
crates/brk_logger/build.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let profile = std::env::var("PROFILE").unwrap_or_default();
|
||||||
|
|
||||||
|
if profile == "release" {
|
||||||
|
println!("cargo:rustc-flag=-C");
|
||||||
|
println!("cargo:rustc-flag=target-cpu=native");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@ edition.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
axum = { workspace = true }
|
axum = { workspace = true }
|
||||||
|
|||||||
8
crates/brk_mcp/build.rs
Normal file
8
crates/brk_mcp/build.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let profile = std::env::var("PROFILE").unwrap_or_default();
|
||||||
|
|
||||||
|
if profile == "release" {
|
||||||
|
println!("cargo:rustc-flag=-C");
|
||||||
|
println!("cargo:rustc-flag=target-cpu=native");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,7 +8,7 @@ edition.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitcoin = { workspace = true }
|
bitcoin = { workspace = true }
|
||||||
|
|||||||
8
crates/brk_parser/build.rs
Normal file
8
crates/brk_parser/build.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let profile = std::env::var("PROFILE").unwrap_or_default();
|
||||||
|
|
||||||
|
if profile == "release" {
|
||||||
|
println!("cargo:rustc-flag=-C");
|
||||||
|
println!("cargo:rustc-flag=target-cpu=native");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@ edition.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
axum = { workspace = true }
|
axum = { workspace = true }
|
||||||
|
|||||||
8
crates/brk_server/build.rs
Normal file
8
crates/brk_server/build.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let profile = std::env::var("PROFILE").unwrap_or_default();
|
||||||
|
|
||||||
|
if profile == "release" {
|
||||||
|
println!("cargo:rustc-flag=-C");
|
||||||
|
println!("cargo:rustc-flag=target-cpu=native");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,7 +8,7 @@ edition.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
brk_error = { workspace = true }
|
brk_error = { workspace = true }
|
||||||
|
|||||||
8
crates/brk_store/build.rs
Normal file
8
crates/brk_store/build.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let profile = std::env::var("PROFILE").unwrap_or_default();
|
||||||
|
|
||||||
|
if profile == "release" {
|
||||||
|
println!("cargo:rustc-flag=-C");
|
||||||
|
println!("cargo:rustc-flag=target-cpu=native");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@ edition.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitcoin = { workspace = true }
|
bitcoin = { workspace = true }
|
||||||
|
|||||||
8
crates/brk_structs/build.rs
Normal file
8
crates/brk_structs/build.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let profile = std::env::var("PROFILE").unwrap_or_default();
|
||||||
|
|
||||||
|
if profile == "release" {
|
||||||
|
println!("cargo:rustc-flag=-C");
|
||||||
|
println!("cargo:rustc-flag=target-cpu=native");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,7 +8,7 @@ edition.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
brk_vecs_macros = { workspace = true }
|
brk_vecs_macros = { workspace = true }
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ edition.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
build = "../../build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
proc-macro = true
|
proc-macro = true
|
||||||
|
|||||||
8
crates/brk_vecs_macros/build.rs
Normal file
8
crates/brk_vecs_macros/build.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let profile = std::env::var("PROFILE").unwrap_or_default();
|
||||||
|
|
||||||
|
if profile == "release" {
|
||||||
|
println!("cargo:rustc-flag=-C");
|
||||||
|
println!("cargo:rustc-flag=target-cpu=native");
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user