Configure as library, add demo

This commit is contained in:
Elnu 2023-05-19 12:16:47 -07:00
parent af89a99a52
commit 6a027c0a24
6 changed files with 19 additions and 2 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
/target /target
Cargo.lock

View file

@ -1,5 +1,6 @@
[package] [package]
name = "" name = "renrs"
description = "A Rust-based visual novel backend compatible with Ren'Py .rpy script files."
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"

1
demo/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

9
demo/Cargo.toml Normal file
View file

@ -0,0 +1,9 @@
[package]
name = "renrs-demo"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
renrs = { path = ".." }

5
demo/src/main.rs Normal file
View file

@ -0,0 +1,5 @@
use renrs;
fn main() {
renrs::hello();
}

View file

@ -1,3 +1,3 @@
fn main() { pub fn hello() {
println!("Hello, world!"); println!("Hello, world!");
} }