-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(feed): improve structure & compatibility (#29)
* chore(crates): init feed crate * refactor(feed): move feed impl to crate * fix: format code * chore(feed): add unit test * fix(feed): invalid feed url * fix: format code * refactor(feed): read entry links * refactor(feed): move from_entry to impl
- Loading branch information
Showing
22 changed files
with
318 additions
and
238 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
mod db_user; | ||
mod db_user_feed_item; | ||
mod db_user_feed_item_impl; | ||
mod db_user_impl; | ||
mod service; | ||
|
||
pub use db_user::ApubUser; | ||
pub use db_user_feed_item::{ApubUserFeedItem, JsonUserFeed, JsonUserFeedHatsu, JsonUserFeedItem}; | ||
pub use service::{PublicKeySchema, Service, ServiceAttachment, ServiceImage}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[package] | ||
name = "hatsu_feed" | ||
version.workspace = true | ||
edition.workspace = true | ||
publish.workspace = true | ||
readme.workspace = true | ||
license.workspace = true | ||
authors.workspace = true | ||
description.workspace = true | ||
documentation.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
|
||
[lib] | ||
name = "hatsu_feed" | ||
path = "src/lib.rs" | ||
|
||
[dependencies] | ||
hatsu_db_schema = { workspace = true } | ||
hatsu_utils = { workspace = true } | ||
activitypub_federation = { workspace = true } | ||
async-recursion = { workspace = true } | ||
chrono = { workspace = true } | ||
feed-rs = { workspace = true } | ||
reqwest = { workspace = true } | ||
scraper = { workspace = true } | ||
serde = { workspace = true } | ||
serde_json = { workspace = true } | ||
url = { workspace = true } | ||
|
||
[dev-dependencies] | ||
tokio = { workspace = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
mod site_feed; | ||
mod user_feed; | ||
mod user_feed_item; | ||
|
||
pub use site_feed::SiteFeed; | ||
pub use user_feed::{UserFeed, UserFeedHatsu}; | ||
pub use user_feed_item::{UserFeedItem, WrappedUserFeedItem}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.