-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Develop release v0.2.1
- Loading branch information
Showing
17 changed files
with
675 additions
and
629 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
[package] | ||
name = "get-blessed" | ||
version = "0.2.0" | ||
version = "0.2.1" | ||
edition = "2021" | ||
authors = ["Josue <[email protected]>"] | ||
readme = "README.md" | ||
homepage = "https://github.com/josueBarretogit/get_blessed_rs" | ||
repository = "https://github.com/josueBarretogit/get_blessed_rs" | ||
description = "Terminal tool to get you the best crates for your rust projects with a few keybindings, curated by blessed.rs" | ||
keywords = ["cli", "command-line", "developer-tools", "dependencies"] | ||
categories = ["utilities", "development-tools" , "command-line", "dependencies"] | ||
keywords = ["cli", "command-line", "developer-tools"] | ||
categories = ["development-tools", "command-line-interface" , "command-line-utilities"] | ||
license = "MIT" | ||
exclude = [ | ||
"public/*" | ||
|
@@ -17,13 +17,15 @@ exclude = [ | |
|
||
[dependencies] | ||
reqwest = { version = "0.12.4" , features = ["json"]} | ||
ratatui = { version = "0.26.3", features = ["all-widgets"] } | ||
ratatui = { version = "0.26.3", features = ["all-widgets", "unstable-widget-ref"] } | ||
color-eyre = "0.6.2" | ||
crossterm = { version = "0.27.0", features = ["event-stream"] } | ||
serde = { version = "1.0.200", features = ["derive"] } | ||
strum = "0.26.2" | ||
strum_macros = "0.26" | ||
open = "5.1.3" | ||
throbber-widgets-tui = "0.5.0" | ||
tokio = { version = "1.37.0", features = ["full"] } | ||
tokio = { version = "1.37.0", features = ["macros", "rt-multi-thread"] } | ||
crates_io_api = "0.11.0" | ||
type_utilities = { version = "0.1.2", features = ["bool"] } | ||
tui-widget-list = "0.9.0" |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,35 @@ | ||
pub mod scraper; | ||
use serde::{Deserialize}; | ||
|
||
#[derive(Deserialize, Debug, Default, Clone)] | ||
pub struct Group { | ||
pub name: String, | ||
pub subgroups: Option<Vec<Group>>, | ||
pub purposes: Option<Vec<Purpose>>, | ||
} | ||
|
||
#[derive(Deserialize, Debug, Default, Clone)] | ||
pub struct Purpose { | ||
pub name: String, | ||
pub recommendations: Vec<Recommendation>, | ||
} | ||
|
||
#[derive(Deserialize, Debug, Default, Clone)] | ||
pub struct Recommendation { | ||
pub name: String, | ||
pub notes: Option<String>, | ||
} | ||
|
||
#[derive(Deserialize, Debug, Default, Clone)] | ||
pub struct CratesData { | ||
pub crate_groups: Vec<Group>, | ||
} | ||
|
||
pub async fn scrape_site() -> Result<CratesData, reqwest::Error> { | ||
let response = reqwest::get( | ||
"https://raw.githubusercontent.com/nicoburns/blessed-rs/main/data/crates.json", | ||
) | ||
.await? | ||
.json::<CratesData>() | ||
.await?; | ||
Ok(response) | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.