project: split project into library and executable

This commit is contained in:
Bruno BELANYI 2020-03-16 14:57:01 +01:00
parent 1a3d0ca2a7
commit ea9120fab3
2 changed files with 8 additions and 0 deletions

View file

@ -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"

0
src/lib.rs Normal file
View file