Skip to content

Commit 1753450

Browse files
committed
Rename crate listennotes => podcast-api + remove module layer
1 parent dc10d7a commit 1753450

File tree

8 files changed

+11
-13
lines changed

8 files changed

+11
-13
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "listennotes"
2+
name = "podcast-api"
33
version = "0.1.0"
44
authors = ["Cameron Fyfe <cameron.j.fyfe@gmail.com>"]
55
edition = "2018"

examples/sample/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2018"
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10-
listennotes = { version = "^0", path = "../../" }
10+
podcast-api = { version = "^0", path = "../../" }
1111
reqwest = { version = "0.11", features = ["json"] }
1212
serde = { version = "1", features = ["derive"] }
1313
serde_json = "1"

examples/sample/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use listennotes::podcast_api;
21
use serde_json::json;
32

43
#[tokio::main]
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/lib.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
pub mod podcast_api;
1+
mod api;
2+
mod client;
3+
mod error;
4+
5+
use api::Api;
6+
7+
pub use client::Client;
8+
pub use error::Error;
9+
pub type Result<T> = std::result::Result<T, error::Error>;

src/podcast_api/mod.rs

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)