Skip to content

Commit

Permalink
add cargo meta
Browse files Browse the repository at this point in the history
  • Loading branch information
Tricked-dev committed Sep 29, 2022
1 parent a74c8fc commit 7c2b573
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 12 deletions.
19 changes: 19 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
edition = "2021"
name = "lowestbins"
version = "1.3.0"
authors = ["Tricked-dev <tricked@tricked.pro>"]
description = "Lowestbins made in rust for maximum efficiency"
repository = "https://github.com/tricked-dev/lowestbins"
documentation = "https://docs.rs/lowestbins"
readme = "README.md"
license = "APACHE-2.0"
homepage = "https://lb.tricked.pro"
categories = ["command-line-utilities"]
exclude = [
".vscode/settings.json",
"makefile",
]


# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
Expand All @@ -12,6 +25,12 @@ local = []
[profile.release]
lto = true
strip = true
codegen-units = 1
incremental = true
opt-level = 'z'

[profile.release.package."*"]
opt-level = 3

[build-dependencies]
colored = "2.0"
Expand Down
14 changes: 8 additions & 6 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ fn main() {
fs::write(format!("{}/logo.txt", &env::var("OUT_DIR").unwrap()), res).unwrap();
let output = format!("{}/sellprices.json", &env::var("OUT_DIR").unwrap());
println!("cargo:rerun-if-changed={}", output);
let _cmd = Command::new("curl")
.arg("-o")
.arg(output)
.arg(LOC)
.output()
.expect("failed to execute process");
if fs::read(&output).is_err() {
let _cmd = Command::new("curl")
.arg("-o")
.arg(output)
.arg(LOC)
.output()
.expect("failed to execute process");
}
}
10 changes: 4 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
#![doc = include_str!("../README.md")]

pub mod bazaar;
pub mod fetch;
pub mod nbt_utils;
pub mod server;
pub mod webhook;

use std::{collections::HashMap, env, fs, sync::Mutex, time::Duration};
use std::{collections::HashMap, env, fs, sync::Mutex};

use isahc::{
config::{NetworkInterface, VersionNegotiation},
prelude::*,
HttpClient,
};
use isahc::HttpClient;

const UPDATE_SECONDS: &str = "UPDATE_SECONDS";
const SAVE_TO_DISK: &str = "SAVE_TO_DISK";
Expand Down

0 comments on commit 7c2b573

Please sign in to comment.