Skip to content

Commit

Permalink
Merge pull request #34 from sebastienrousseau/feat/libmake
Browse files Browse the repository at this point in the history
refactor(libmake): ♻️ macros and implementations work
  • Loading branch information
sebastienrousseau authored Mar 26, 2024
2 parents 73a9fce + 85226a6 commit cceee36
Show file tree
Hide file tree
Showing 80 changed files with 2,617 additions and 3,542 deletions.
13 changes: 8 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ name = "libmake"
readme = "README.md"
repository = "https://github.com/sebastienrousseau/libmake.git"
rust-version = "1.75.0"
version = "0.2.2"
version = "0.2.3"
include = [
"/CONTRIBUTING.md",
"/LICENSE-APACHE",
Expand Down Expand Up @@ -54,16 +54,19 @@ debug = true
[dependencies]
anyhow = "1.0.81"
assert_cmd = "2.0.14"
clap = "4.5.3"
clap = "4.5.4"
configparser = "3.0.4"
csv = "1.3.0"
dtt = "0.0.5"
env_logger = "0.11.3"
figlet-rs = "0.1.5"
configparser = "3.0.4"
reqwest = { version = "0.12.1", features = ["blocking"] }
log = {version="0.4.21", features = ["std"] }
regex = "1.10.4"
reqwest = { version = "0.12.2", features = ["blocking"] }
rlg = "0.0.3"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114"
serde_ini = "0.2.0"
serde_json = "1.0.115"
serde_yaml = "0.9.33"
tempfile = "3.10.1"
toml = "0.8.12"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,6 @@ providing a lot of useful suggestions on how to improve this project.
[crates-badge]: https://img.shields.io/crates/v/libmake.svg?style=for-the-badge "Crates.io Badge"
[divider]: https://kura.pro/common/images/elements/divider.svg "divider"
[docs-badge]: https://img.shields.io/docsrs/libmake.svg?style=for-the-badge "Docs.rs Badge"
[libs-badge]: https://img.shields.io/badge/lib.rs-v0.2.2-orange.svg?style=for-the-badge "Lib.rs Badge"
[libs-badge]: https://img.shields.io/badge/lib.rs-v0.2.3-orange.svg?style=for-the-badge "Lib.rs Badge"
[license-badge]: https://img.shields.io/crates/l/libmake.svg?style=for-the-badge "License Badge"
[made-with-rust-badge]: https://img.shields.io/badge/rust-f04041?style=for-the-badge&labelColor=c0282d&logo=rust "Made With Rust Badge"
4 changes: 2 additions & 2 deletions TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ alt="LibMake logo" width="261" align="right" />

<!-- markdownlint-enable MD033 MD041 -->

# LibMake v0.2.2 🦀
# LibMake v0.2.3 🦀

A code generator to reduce repetitive tasks and build high-quality Rust libraries.

Expand Down Expand Up @@ -64,6 +64,6 @@ The library is designed to be used as a command-line tool. It is available on [C
[codecov-badge]: https://img.shields.io/codecov/c/github/sebastienrousseau/libmake?style=for-the-badge&token=Q9KJ6XXL67 "Codecov Badge"
[crates-badge]: https://img.shields.io/crates/v/libmake.svg?style=for-the-badge "Crates.io Badge"
[docs-badge]: https://img.shields.io/docsrs/libmake.svg?style=for-the-badge "Docs.rs Badge"
[libs-badge]: https://img.shields.io/badge/lib.rs-v0.2.2-orange.svg?style=for-the-badge "Lib.rs Badge"
[libs-badge]: https://img.shields.io/badge/lib.rs-v0.2.3-orange.svg?style=for-the-badge "Lib.rs Badge"
[license-badge]: https://img.shields.io/crates/l/libmake.svg?style=for-the-badge "License Badge"
[made-with-rust-badge]: https://img.shields.io/badge/rust-f04041?style=for-the-badge&labelColor=c0282d&logo=rust "Made With Rust Badge"
2 changes: 1 addition & 1 deletion examples/generate_from_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
//! If there is an error, it will print an error message.

// Import the necessary function for generating files from arguments
use libmake::generator::generate_from_args;
use libmake::generators::args::generate_from_args;

/// A simple test program for the `generate_from_args` function.
///
Expand Down
4 changes: 2 additions & 2 deletions examples/generate_from_csv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
//! ```

// Import the necessary function for generating templates from a CSV file.
use libmake::generator::generate_from_csv;
use libmake::generators::csv::generate_from_csv;

/// Attempts to generate template files from the specified CSV file.
///
Expand All @@ -48,7 +48,7 @@ use libmake::generator::generate_from_csv;
/// The following example demonstrates how to use the `generate_from_csv` function:
///
/// ```rust
/// use libmake::generator::generate_from_csv;
/// use libmake::generators::csv::generate_from_csv;
///
/// let csv_file_path = "./tests/data/mylibrary.csv";
///
Expand Down
2 changes: 1 addition & 1 deletion examples/generate_from_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
//! ```

// Import the necessary function for generating templates from a JSON file.
use libmake::generator::generate_from_json;
use libmake::generators::json::generate_from_json;

/// Generate template files based on the data in the JSON file.
///
Expand Down
2 changes: 1 addition & 1 deletion examples/generate_from_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
//! ```
//!
// Import the necessary function for generating templates from a TOML file.
use libmake::generator::generate_from_toml;
use libmake::generators::toml::generate_from_toml;

/// Generate template files based on the configuration in the TOML file.
///
Expand Down
2 changes: 1 addition & 1 deletion examples/generate_from_yaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
//! ```

// Import the necessary function for generating templates from a YAML file.
use libmake::generator::generate_from_yaml;
use libmake::generators::yaml::generate_from_yaml;

/// Generate template files from the specified YAML file.
///
Expand Down
8 changes: 0 additions & 8 deletions output_dir/.deepsource.toml

This file was deleted.

Loading

0 comments on commit cceee36

Please sign in to comment.