Book Lib
This library provides an interface for adding, removing and manging existing PDF files stored on your device.
Requirements
- unix device
- rust
- sqlite
Setup
- clone the project from the git repository or add it using
cargo add book_lib - use the api in your rust project
Usage
- Create a connection to the database:
use ;
let connection = setup;
- Create a new book
let new_book = init;
create_book; //creating new book in the DB
- Make it favourite
update_favourite; //true to be favourite, false not to be
- Remove the book
remove_book;
Examples of implementation
Contribution
Feel free to open pull requests!