Skip to content

Commit

Permalink
Improved README and example (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarmadgulzar authored Aug 3, 2021
1 parent 3ac8de1 commit 90acf15
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "deta"
version = "0.2.0"
version = "0.3.0"
edition = "2018"
license-file = "LICENSE"
description = "Deta SDK for Rust"
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@ Deta SDK for Rust

Example:

`Cargo.toml`

```toml
[dependencies]
deta = "0.3.0"
serde = { version = "1.0.127", features = ["derive"] }
```

`main.rs`

```rust
use base::Base;
use deta::base::Base;
use serde::Deserialize;

#[derive(Debug, Deserialize)]
Expand Down

0 comments on commit 90acf15

Please sign in to comment.