> For the complete documentation index, see [llms.txt](https://davidsietz.gitbook.io/workspace/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://davidsietz.gitbook.io/workspace/module-03/03-section-01/03-section-01-2.md).

# Section I - library

> [lib.rs](https://github.com/dsietz/rust-daas/blob/master/src/lib.rs)

We will also declare these dependencies in our share `src/lib.rs` library with macros in use.

```
#[macro_use] extern crate serde_derive;
#[macro_use] extern crate serde_json;
```

We also need to provide a share function `get_unix_now()` that teh daas module will need. So we declare the `use` of the dependencies and the function itself.

```
use std::str;
use std::time::{SystemTime};
```

```
fn get_unix_now() -> u64 {
    match SystemTime::now().duration_since(SystemTime::UNIX_EPOCH) {
        Ok(n) =>n.as_secs(),
        Err(_) => panic!("SystemTime before UNIX EPOCH!"),
    }
}
```

To add the *daas* module to our library, we declare it at the bottom of our `src/lib.rs` file, (after the hello\_world module).

```
pub mod daas;
```
