diff options
author | EuAndreh <eu@euandre.org> | 2021-07-27 14:24:01 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-07-27 15:44:45 -0300 |
commit | 7bf0f2319442ee153cc656b72fa660c709f6a0cd (patch) | |
tree | ddae5f4ed3a7431bf026d3a64f9ff06615231804 /src | |
parent | aux/: Update, adjust Makefile (diff) | |
download | gistatic-7bf0f2319442ee153cc656b72fa660c709f6a0cd.tar.gz gistatic-7bf0f2319442ee153cc656b72fa660c709f6a0cd.tar.xz |
Re-setup repository using C over Rust
Diffstat (limited to 'src')
-rw-r--r-- | src/gistatic.c | 3 | ||||
-rw-r--r-- | src/lib.rs | 19 | ||||
-rw-r--r-- | src/main.rs | 4 |
3 files changed, 3 insertions, 23 deletions
diff --git a/src/gistatic.c b/src/gistatic.c new file mode 100644 index 0000000..061ed7e --- /dev/null +++ b/src/gistatic.c @@ -0,0 +1,3 @@ +int main(void) { + return 0; +} diff --git a/src/lib.rs b/src/lib.rs deleted file mode 100644 index 2bd4a2e..0000000 --- a/src/lib.rs +++ /dev/null @@ -1,19 +0,0 @@ -const LOG: &'static str = include_str!("templates/log.html"); - -pub fn a_fn() -> i32 { - // println!("log.html.tmpl: {}", t); - let template = mustache::compile_str(LOG).unwrap(); - let _data = mustache::MapBuilder::new() - .insert_str("name", "Venus") - .build(); - - let mut d2 = std::collections::HashMap::new(); - d2.insert("a", "b"); - template.render(&mut std::io::stdout(), &d2). unwrap(); - - 0 -} - -#[test] -fn a_test() { -} diff --git a/src/main.rs b/src/main.rs deleted file mode 100644 index cdb964d..0000000 --- a/src/main.rs +++ /dev/null @@ -1,4 +0,0 @@ -pub fn main() { - println!("Hello, World!"); - println!("a_fn(): {}", gistatic::a_fn()); -} |