Compare commits
2 Commits
152348a17a
...
19e5f4e2f4
| Author | SHA1 | Date | |
|---|---|---|---|
| 19e5f4e2f4 | |||
| 03e02b9882 |
10
Cargo.lock
generated
10
Cargo.lock
generated
@ -30,6 +30,15 @@ version = "1.3.2"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "c-main"
|
||||||
|
version = "1.0.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "797bbff8bd2bcddb7f0ee638b55398686adac15174689a86da5ffc0f51219f75"
|
||||||
|
dependencies = [
|
||||||
|
"libc",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cexpr"
|
name = "cexpr"
|
||||||
version = "0.6.0"
|
version = "0.6.0"
|
||||||
@ -205,6 +214,7 @@ dependencies = [
|
|||||||
name = "tomcat"
|
name = "tomcat"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"c-main",
|
||||||
"toml",
|
"toml",
|
||||||
"yacexits",
|
"yacexits",
|
||||||
]
|
]
|
||||||
|
|||||||
@ -6,5 +6,6 @@ license = "AGPL-3.0-or-later"
|
|||||||
authors = [ "Emma Tebibyte <emma@tebibyte.media>" ]
|
authors = [ "Emma Tebibyte <emma@tebibyte.media>" ]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
c-main = "1.0.1"
|
||||||
toml = "0.5.9"
|
toml = "0.5.9"
|
||||||
yacexits = "0.1.2"
|
yacexits = "0.1.2"
|
||||||
|
|||||||
93
src/main.rs
93
src/main.rs
@ -16,18 +16,18 @@
|
|||||||
* along with this program. If not, see https://www.gnu.org/licenses/.
|
* along with this program. If not, see https://www.gnu.org/licenses/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#![no_main]
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
env,
|
|
||||||
fs::File,
|
fs::File,
|
||||||
io::{
|
io::Read,
|
||||||
Read,
|
|
||||||
stdin,
|
|
||||||
},
|
|
||||||
iter::Peekable,
|
iter::Peekable,
|
||||||
|
os::fd::{ FromRawFd },
|
||||||
path::Path,
|
path::Path,
|
||||||
str::FromStr,
|
str::FromStr,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
use c_main::Args;
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
use yacexits::*;
|
use yacexits::*;
|
||||||
|
|
||||||