Skip to content

Commit

Permalink
Add Material Design Icons (MDI)
Browse files Browse the repository at this point in the history
  • Loading branch information
duelafn committed Oct 15, 2024
1 parent 6e1d8bf commit 0679f2f
Show file tree
Hide file tree
Showing 10 changed files with 126,670 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ members = [
"icondata_im",
"icondata_io",
"icondata_lu",
"icondata_mdi",
"icondata_oc",
"icondata_ri",
"icondata_si",
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ but must only be taken as a hint. Please check the individual icon repositories
| IcoMoon Free | unknown | Git: <https://github.com/Keyamoon/IcoMoon-Free> - Branch: master - Commit: d006795ede82361e1bac1ee76f215cf1dc51e4ca | CC BY 4.0, GPL, | icondata_im |
| Ionicons | 7.1.2 | Git: <https://github.com/ionic-team/ionicons> - Tag: v7.1.2 | MIT, | icondata_io |
| Lucide | 0.265.0 | Git: <https://github.com/lucide-icons/lucide> - Tag: v0.265.0 | ISC, | icondata_lu |
| Material Design Icons | 7.4.47 | Git: <https://github.com/Templarian/MaterialDesign-SVG> - Tag: v7.4.47 | Apache 2.0, | icondata_mdi |
| Github Octicons | 19.7.0 | Git: <https://github.com/primer/octicons> - Tag: v19.7.0 | MIT, | icondata_oc |
| Remix Icon | 3.5.0 | Git: <https://github.com/Remix-Design/RemixIcon> - Tag: v3.5.0 | Apache 2.0, | icondata_ri |
| Simple Icons | 9.14.0 | Git: <https://github.com/simple-icons/simple-icons> - Tag: 9.14.0 | CC0 1.0 Universal, | icondata_si |
Expand Down
28 changes: 28 additions & 0 deletions build/src/package/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ pub enum PackageType {
GithubOcticons,
Lucide,
Charm,
MaterialDesignIcons,
}

#[derive(Debug, Clone)]
Expand Down Expand Up @@ -715,6 +716,33 @@ impl PackageType {
build: None,
},
},
PackageType::MaterialDesignIcons => PackageMetadata {
short_name: Cow::Borrowed("mdi"),
package_name: Cow::Borrowed("Material Design Icons"),
licenses: &[Cow::Borrowed("Apache 2.0")],
source: PackageSource::Git {
url: Cow::Borrowed("https://github.com/Templarian/MaterialDesign-SVG"),
target: GitTarget::Tag {
name: Cow::Borrowed("v7.4.47"),
version: SemVer {
major: 7,
minor: 4,
patch: 47,
prerelease: None,
build: None,
},
},
},
download_dir: "MaterialDesign-SVG".into(),
svg_dir: Cow::Borrowed("svg"),
crate_version: SemVer {
major: 0,
minor: 0,
patch: 10,
prerelease: None,
build: None,
},
},
}
}
}
7,447 changes: 7,447 additions & 0 deletions icon_index/src/lib.rs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions icondata/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ icondata_hi = { path = "../icondata_hi", version = "0.0.10", optional = true }
icondata_im = { path = "../icondata_im", version = "0.0.10", optional = true }
icondata_io = { path = "../icondata_io", version = "0.0.10", optional = true }
icondata_lu = { path = "../icondata_lu", version = "0.0.10", optional = true }
icondata_mdi = { path = "../icondata_mdi", version = "0.0.10", optional = true }
icondata_oc = { path = "../icondata_oc", version = "0.0.10", optional = true }
icondata_ri = { path = "../icondata_ri", version = "0.0.10", optional = true }
icondata_si = { path = "../icondata_si", version = "0.0.10", optional = true }
Expand All @@ -49,6 +50,7 @@ default = [
"ico-moon-free",
"ionicons",
"lucide",
"material-design-icons",
"github-octicons",
"remix-icon",
"simple-icons",
Expand All @@ -69,6 +71,7 @@ heroicons = ["dep:icondata_hi"]
ico-moon-free = ["dep:icondata_im"]
ionicons = ["dep:icondata_io"]
lucide = ["dep:icondata_lu"]
material-design-icons = ["dep:icondata_mdi"]
github-octicons = ["dep:icondata_oc"]
remix-icon = ["dep:icondata_ri"]
simple-icons = ["dep:icondata_si"]
Expand Down
2 changes: 2 additions & 0 deletions icondata/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ pub use icondata_im::*;
pub use icondata_io::*;
#[cfg(feature = "lucide")]
pub use icondata_lu::*;
#[cfg(feature = "material-design-icons")]
pub use icondata_mdi::*;
#[cfg(feature = "github-octicons")]
pub use icondata_oc::*;
#[cfg(feature = "remix-icon")]
Expand Down
15 changes: 15 additions & 0 deletions icondata_mdi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "icondata_mdi"
version = "0.0.10"
authors = ["Charles Edward Gagnon"]
edition = "2021"
description = "Library providing SVG and corresponding metadata for \"Material Design Icons\"."
readme = "./README.md"
repository = "https://github.com/Carlosted/icondata"
license = "MIT"
keywords = ["icons"]
categories = ["web-programming"]
rust-version = "1.67.0"

[dependencies]
icondata_core = { path = "../icondata_core", version = "0.1.0" }
10 changes: 10 additions & 0 deletions icondata_mdi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Icondata - mdi

Icon data from the *Material Design Icons* library.

Visit this [repository](https://github.com/Carlosted/icondata) for in-depth information.

## Contributing

Contributions are more than welcomed!
Do not hesitate add icon libraries, features, etc.
Loading

0 comments on commit 0679f2f

Please sign in to comment.