From ea9120fab30d2ef656cbe2f51a9f0608bbdb2f22 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 16 Mar 2020 14:57:01 +0100 Subject: [PATCH] project: split project into library and executable --- Cargo.toml | 8 ++++++++ src/lib.rs | 0 2 files changed, 8 insertions(+) create mode 100644 src/lib.rs diff --git a/Cargo.toml b/Cargo.toml index 6c752af..fbfe478 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,5 +10,13 @@ description = "A pathtracer written in Rust" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lib] +name = "pathtracer" +path = "src/lib.rs" + +[[bin]] +name = "pathtracer" +path = "src/main.rs" + [dependencies] bvh = "0.3.2" diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..e69de29