Added sample lib

This commit is contained in:
franklinblanco 2022-08-12 20:24:52 -04:00
parent 5afca76aaa
commit 58d8516764
7 changed files with 17 additions and 3 deletions

View File

@ -3,6 +3,9 @@ name = "dev-dtos"
version = "0.1.0"
edition = "2021"
[lib]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde = { version = "1.0", features = ["derive"] }
chrono = { version = "0.4", features = [ "serde" ] }

2
src/dtos/mod.rs Normal file
View File

@ -0,0 +1,2 @@
pub mod shared;
pub mod sample;

1
src/dtos/sample/mod.rs Normal file
View File

@ -0,0 +1 @@
pub mod sample;

View File

@ -0,0 +1,8 @@
pub struct SampleStruct{
pub sample_field: i32
}
impl SampleStruct {
pub fn new_sample() -> SampleStruct{
SampleStruct { sample_field: -1 }
}
}

0
src/dtos/shared/mod.rs Normal file
View File

3
src/lib.rs Normal file
View File

@ -0,0 +1,3 @@
#[forbid(unsafe_code)]
pub mod dtos;

View File

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