Added license, README and other minor things #1

Merged
Thelie merged 10 commits from thelie-patch-1 into main 2022-03-27 15:39:44 +02:00
Showing only changes of commit df8e5f3e27 - Show all commits

View file

@ -16,7 +16,7 @@ It does this by providing two macros:
- `sing_add_trait`, which acts as an attribute to a trait implementation and gathers the method signatures that are used by `sing_loop!`. - `sing_add_trait`, which acts as an attribute to a trait implementation and gathers the method signatures that are used by `sing_loop!`.
- `sing_loop!`, which takes a trait object and serialization/deserialization functions as well as some optional parameters. It generates a loop parsing function calls coming from STDIN (or any other `BufRead` stream), evaluating them by calling the appropriate method on the object and returning them on STDOUT (or any other `Write` stream). - `sing_loop!`, which takes a trait object and serialization/deserialization functions as well as some optional parameters. It generates a loop parsing function calls coming from STDIN (or any other `BufRead` stream), evaluating them by calling the appropriate method on the object and returning them on STDOUT (or any other `Write` stream).
## Example usage ## Usage example
```rust ```rust
use serde::{Serialize, Deserialize}; use serde::{Serialize, Deserialize};