Prepare for releases
This commit is contained in:
parent
0faf0c1773
commit
d61bd044a4
@ -6,3 +6,6 @@ edition = "2021"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "*", features = ["derive"] }
|
serde = { version = "*", features = ["derive"] }
|
||||||
serde_yaml = "*"
|
serde_yaml = "*"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
lto = true
|
@ -3,9 +3,18 @@ use std::fs::File;
|
|||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use std::io::prelude::*;
|
use std::io::prelude::*;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
#[cfg(not(debug_assertions))]
|
||||||
|
macro_rules! PATH { () => { "/etc/mrproxy/" } }
|
||||||
|
#[cfg(not(debug_assertions))]
|
||||||
|
static FILE_CONF: &str = concat!(PATH!(),"mrprox.conf");
|
||||||
|
#[cfg(not(debug_assertions))]
|
||||||
|
static FILE_SERVERS: &str = concat!(PATH!(),"mrprox_servers.conf");
|
||||||
|
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
static FILE_CONF: &str = "mrprox.conf";
|
static FILE_CONF: &str = "mrprox.conf";
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
static FILE_SERVERS: &str = "mrprox_servers.conf";
|
static FILE_SERVERS: &str = "mrprox_servers.conf";
|
||||||
|
|
||||||
const DEF_PORT: u16 = 25565;
|
const DEF_PORT: u16 = 25565;
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Serialize, Deserialize, Clone)]
|
#[derive(Debug, PartialEq, Serialize, Deserialize, Clone)]
|
||||||
|
Loading…
Reference in New Issue
Block a user