This repository has been archived by the owner on Jul 28, 2024. It is now read-only.
-
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.
new: Support categories and channels for packages. (#18)
- Loading branch information
Showing
9 changed files
with
224 additions
and
21 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 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,121 @@ | ||
// Initial list based on Cargo: https://crates.io/category_slugs | ||
|
||
use schematic::{derive_enum, ConfigEnum}; | ||
|
||
derive_enum!( | ||
#[derive(ConfigEnum)] | ||
pub enum Category { | ||
// General categories | ||
#[serde(alias = "a11y")] | ||
Accessibility, | ||
Algorithm, | ||
Architecture, | ||
#[serde(alias = "async")] | ||
Asynchronous, | ||
Authentication, | ||
Authorization, | ||
Automation, | ||
Blockchain, | ||
Caching, | ||
#[serde(alias = "cli")] | ||
CommandLineInterface, | ||
CommandLineUtilities, | ||
Compiler, | ||
Compression, | ||
Concurrency, | ||
Configuration, | ||
#[serde(alias = "ci")] | ||
ContinuousIntegration, | ||
#[serde(alias = "cd")] | ||
ContinuousDeployment, | ||
#[serde(alias = "cms")] | ||
ContentManagementSystem, | ||
Crypto, | ||
Cryptography, | ||
Database, | ||
DataStructure, | ||
DateTime, | ||
Debugging, | ||
#[serde(alias = "devx")] | ||
DeveloperExperience, | ||
DevelopmentTool, | ||
Encoding, | ||
#[serde(alias = "e2e")] | ||
EndToEnd, | ||
ErrorHandling, | ||
FileSystem, | ||
Finance, | ||
Gaming, | ||
Graphics, | ||
#[serde(alias = "gui")] | ||
GraphicalInterface, | ||
InternalTool, | ||
#[serde(alias = "i18n")] | ||
Internationalization, | ||
#[serde(alias = "l10n")] | ||
Localization, | ||
Logging, | ||
Mathematics, | ||
MediaProcessing, | ||
MediaAudio, | ||
MediaImage, | ||
MediaVideo, | ||
Mobile, | ||
Networking, | ||
Os, | ||
Parser, | ||
Profiling, | ||
Publishing, | ||
Rendering, | ||
Security, | ||
Social, | ||
TemplateEngine, | ||
Testing, | ||
TestingUtilities, | ||
TextProcessing, | ||
#[serde(alias = "ux")] | ||
UserExperience, | ||
#[serde(alias = "ui")] | ||
UserInterface, | ||
Virtualization, | ||
Visualization, | ||
Wasm, | ||
WebServer, | ||
Websocket, | ||
// Frontend specific | ||
ApplicationFramework, | ||
Bundler, | ||
ClientFramework, | ||
CloudPlatform, | ||
CodeFormatter, | ||
CodeGenerator, | ||
ComponentLibrary, | ||
CssFramework, | ||
CssInJs, | ||
DependencyGraph, | ||
Deployment, | ||
DesignSystem, | ||
EditorExtension, | ||
Environment, | ||
Linter, | ||
LintRules, | ||
MonorepoTool, | ||
MonorepoUtilities, | ||
Plugin, | ||
Primitives, | ||
Reactivity, | ||
ServerFramework, | ||
#[serde(alias = "ssr")] | ||
ServerSideRenderer, | ||
#[serde(alias = "ssg")] | ||
StaticSiteGenerator, | ||
Styles, | ||
StyleGuide, | ||
TaskRunner, | ||
Theme, | ||
TestRunner, | ||
Toolchain, | ||
TypeChecker, | ||
TypeUtilities, | ||
} | ||
); |
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,12 @@ | ||
use clap::ValueEnum; | ||
use schematic::{derive_enum, ConfigEnum}; | ||
|
||
derive_enum!( | ||
#[derive(ConfigEnum, ValueEnum)] | ||
pub enum Channel { | ||
Stable, // latest | ||
Unstable, // next, beta, alpha, etc | ||
Experimental, // one-off | ||
Nightly, | ||
} | ||
); |
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