Skip to content

Commit

Permalink
Update README.md and release v0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Feb 19, 2024
1 parent e59bc92 commit 2e864ea
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 36 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://doc.rust-lang.org/cargo/getting-started/first-steps.html#first-steps-with-cargo
[package]
name = "RuStream"
version = "0.0.4"
version = "0.0.5"
description = "Self-hosted Streaming Engine, that can render videos via authenticated sessions."
license = "MIT"
documentation = "https://docs.rs/RuStream"
Expand Down
72 changes: 37 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,28 @@
#### Summary
[`RuStream`][repo] is a self-hosted streaming engine, that can render videos via authenticated sessions.

## Usage
### Installation

```shell
cargo add RuStream
```

### Usage
```rust
use rustream;

#[actix_rt::main]
async fn main() {
match rustream::start().await {
Ok(_) => {
println!("RuStream session terminated")
}
Err(err) => {
eprintln!("Error starting rustream: {}", err)
}
}
}
```

<details>
<summary><strong>Download OS specific Executable</strong></summary>
Expand All @@ -36,33 +57,11 @@ curl -o RuStream-Windows-x86_64.zip -LH "Accept: application/octet-stream" "http
```
</details>

<details>
<summary><strong>Add to existing project</strong></summary>

###### Sample main.rs
```rust
use rustream;

#[actix_rt::main]
async fn main() {
match rustream::start().await {
Ok(_) => {
println!("RuStream session terminated")
}
Err(err) => {
eprintln!("Error starting rustream: {}", err)
}
}
}
```

</details>

#### Arguments
- `debug` - Enable debug level logging

#### Flags
- `--filename` / `-f` - Filename (JSON) for the secrets config
- `--filename` / `-f` - Filename (JSON) for the secrets' config. Defaults to `config.json`
- `--version` / `-v` - Get package version

#### Config file
Expand Down Expand Up @@ -101,6 +100,20 @@ async fn main() {
```
</details>

## Crate
[https://crates.io/crates/RuStream][crate]

### Cargo Docs - Official Runbook
[https://docs.rs/RuStream/latest/rustream/][docs]

**Generator**
```shell
cargo doc --document-private-items --no-deps
```

### GitHub Wiki - Project Insights
[https://github.com/thevickypedia/RuStream/wiki][gh-wiki]

## Linting
### Requirement
```shell
Expand All @@ -111,17 +124,6 @@ rustup component add clippy
cargo clippy --no-deps --fix
```

## Docs
### [Cargo Docs][docs]
```shell
cargo doc --document-private-items --no-deps
```

#### [GitHub Wiki][gh-wiki]

## Crate
[https://crates.io/crates/RuStream][crate]

## License & copyright

&copy; Vignesh Rao
Expand Down
2 changes: 2 additions & 0 deletions src/squire/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ pub struct Args {
///
/// An `Args` struct containing parsed command-line arguments.
pub fn arguments() -> Args {
// todo: allow optional environment variables for 'debug' and 'filename'
// stretch: remove arguments entirely and onboard a .env file parser
let args: Vec<String> = env::args().collect();

let mut debug = false;
Expand Down

0 comments on commit 2e864ea

Please sign in to comment.