Skip to content

Commit

Permalink
added logcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
marsupialtail committed Oct 10, 2024
1 parent b11353f commit 5d2953a
Show file tree
Hide file tree
Showing 13 changed files with 907 additions and 543 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "rottnest"
version = "1.4.0"
edition = "2021"
build = "build.rs"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
Expand All @@ -15,6 +16,7 @@ pyarrow = ["arrow/pyarrow"]


[dependencies]
openssl = { version = "0.10.35", features = ["vendored"] }
chrono = "0.4.38"
pyo3 = { version = "0.21", features = [
"extension-module",
Expand Down Expand Up @@ -83,7 +85,10 @@ ordered-float = "4.2.0"
reqwest = "0.12.4"
redis = {version = "0", features = ["aio", "tokio-comp"] }
divsufsort = "2.0.0"
libc = "0.2.158"

[profile.release]
lto = false
bit-vec = "0.6.3"
clap = { version = "4.4.18", features = ["derive"] }

23 changes: 23 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
use std::env;
use std::path::PathBuf;

fn main() {
let dir = env::var("CARGO_MANIFEST_DIR").unwrap();
let path = PathBuf::from(dir);

// Specify the directory containing the .a files
println!("cargo:rustc-link-search=native={}", path.display());

// Link against Compressor.a
println!("cargo:rustc-link-lib=static=Compressor");

// Link against Trainer.a
println!("cargo:rustc-link-lib=static=Trainer");

// Link against C++ standard library
println!("cargo:rustc-link-lib=dylib=stdc++");

// Rerun the build script if the static libraries change
println!("cargo:rerun-if-changed=libCompressor.a");
println!("cargo:rerun-if-changed=libTrainer.a");
}
Binary file added libCompressor.a
Binary file not shown.
Binary file added libTrainer.a
Binary file not shown.
Loading

0 comments on commit 5d2953a

Please sign in to comment.