diff --git a/src/cli.rs b/src/cli.rs index 86ac384..29686ff 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -14,9 +14,9 @@ use std::process; use std::process::Command; use thiserror::Error as TE; -pub static VERSION: &str = "0.1.0"; +const VERSION: &str = "0.1.0"; -pub static USAGE: &str = r#"Usage: rusty-cli [OPTIONS] [lua-file] [args]... +const USAGE: &str = r#"Usage: rusty-cli [OPTIONS] [lua-file] [args]... Arguments: [lua-file] diff --git a/src/nginx.rs b/src/nginx.rs index 192734b..787c89d 100644 --- a/src/nginx.rs +++ b/src/nginx.rs @@ -2,11 +2,11 @@ use minijinja::{context, Environment}; use std::env; use std::path::PathBuf; -pub static RESTY_COMPAT_VAR: &str = "RESTY_CLI_COMPAT_VERSION"; -pub static RESTY_COMPAT_LATEST: u64 = 28; +const RESTY_COMPAT_VAR: &str = "RESTY_CLI_COMPAT_VERSION"; +const RESTY_COMPAT_LATEST: u64 = 28; -pub static TEMPLATE: &str = include_str!("nginx.conf.tpl"); -pub static TEMPLATE_NAME: &str = "nginx.conf"; +const TEMPLATE: &str = include_str!("nginx.conf.tpl"); +const TEMPLATE_NAME: &str = "nginx.conf"; pub struct Vars { pub events_conf: Vec,