Skip to content

Commit

Permalink
feat(libmake): 🎨 Tweaks to Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Jan 16, 2024
1 parent 4a00f24 commit 9b46fe2
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 6 deletions.
23 changes: 17 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
[package]
authors = ["Sebastien Rousseau <[email protected]>"]
authors = ["LibMake Contributors"]
categories = ['development-tools', 'command-line-utilities', 'template-engine']
description = "A code generator to reduce repetitive tasks and build high-quality Rust libraries."
description = """
A code generator to reduce repetitive tasks and build high-quality Rust
libraries and applications, by providing a simple interface to create
projects, generate code, and manage dependencies.
"""
documentation = "https://docs.rs/libmake"
edition = "2021"
exclude = ["/.git/*", "/.github/*", "/.gitignore", "/.vscode/*"]
homepage = "https://libmake.com"
keywords = [
'code-generation',
'generator',
Expand All @@ -13,7 +20,7 @@ keywords = [
license = "MIT OR Apache-2.0"
name = "libmake"
repository = "https://github.com/sebastienrousseau/libmake.git"
rust-version = "1.71.1"
rust-version = "1.75.0"
version = "0.2.1"
include = [
"/CONTRIBUTING.md",
Expand All @@ -28,6 +35,12 @@ include = [
"/tests/**",
]

[workspace]
members = ["xtask"]

[package.metadata.docs.rs]
all-features = true

[[bench]]
name = "benchmark"
harness = false
Expand Down Expand Up @@ -61,13 +74,11 @@ predicates = "3.0.4"
crate-type = ["lib"]
name = "libmake"
path = "src/lib.rs"
required-features = []

[features]
default = []

[package.metadata.docs.rs]
all-features = true

[profile.dev]
codegen-units = 256
debug = true
Expand Down
12 changes: 12 additions & 0 deletions xtask/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "xtask"
version = "0.1.0"
edition = "2021"

[dependencies]
anyhow = "1.0.79"
xtaskops = "0.4.2"

[[bin]]
name = "xtask"
path = "src/main.rs"
13 changes: 13 additions & 0 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//! This is the main entry point for the xtask crate.
//!
//! The `main()` function serves as the starting point of the executable.
//! It returns a `Result<(), anyhow::Error>`, indicating success or failure.
//! The `xtaskops::tasks::main()` function is called to perform the main tasks.
//!
//! # Errors
//!
//! If an error occurs during the execution of the tasks, an `anyhow::Error` is returned.

fn main() -> Result<(), anyhow::Error> {
xtaskops::tasks::main()
}

0 comments on commit 9b46fe2

Please sign in to comment.