Skip to content

Commit

Permalink
Make OpenSSL mandatory for all OS
Browse files Browse the repository at this point in the history
Fix missing default for `key_file`
  • Loading branch information
dormant-user committed Feb 16, 2024
1 parent 684303e commit 5e26d49
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,4 @@ minijinja = "1.0.12"
pyo3 = { version = "0.20.2", features = ["auto-initialize"] }
url = "2.5.0"
itertools = "0.12.1"
[target.'cfg(target_os = "linux")'.dependencies]
openssl = { version = "0.10", features = ["vendored"] }
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ use rustream;
async fn main() {
match rustream::start().await {
Ok(_) => {
println!("Successfully served session")
println!("RuStream session terminated")
}
Err(err) => {
eprintln!("Error starting rustream: {}", err)
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ mod routes;
/// async fn main() {
/// match rustream::start().await {
/// Ok(_) => {
/// println!("Successfully served session")
/// println!("RuStream session terminated")
/// }
/// Err(err) => {
/// eprintln!("Error starting rustream: {}", err)
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
async fn main() {
match rustream::start().await {
Ok(_) => {
println!("Successfully served session")
println!("RuStream session terminated")
}
Err(err) => {
eprintln!("Error starting rustream: {}", err)
Expand Down
4 changes: 3 additions & 1 deletion src/squire/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ pub struct Config {
#[serde(default = "default_website")]
pub website: Vec<String>,

// Certificate file
// Path to the full certificate chain file for SSL certificate
#[serde(default="default_ssl")]
pub cert_file: path::PathBuf,
// Path to the private key file for SSL certificate
#[serde(default="default_ssl")]
pub key_file: path::PathBuf
}

Expand Down

0 comments on commit 5e26d49

Please sign in to comment.