compile-time-create-file

Crates.iocompile-time-create-file
lib.rscompile-time-create-file
version0.1.0
sourcesrc
created_at2021-09-17 13:52:12.362732
updated_at2021-09-17 17:54:42.564486
descriptionCreate files and directories at compile time using a procedural macro in Rust.
homepage
repositoryhttps://github.com/mondeja/compile-time-create-file
max_upload_size
id452784
size9,720
Álvaro Mondéjar Rubio (mondeja)

documentation

README

compile-time-create-file

Documentation crates.io CI status

Create files and directories at compile time using a procedural macro in Rust.

Example

use compile_time_create_file::create_file;

create_file!(
    "migrations/users.sql",
    "create table if not exists users (
    id serial,
    username varchar(128) not null,
    password varchar(512) not null,
    email varchar(256) not null,
    enabled boolean not null default true
);
"
);

Installation

Add compile-time-create-file = "0.0.1" under your development dependencies:

[dev-dependencies]
compile-time-create-file = "0.0.1"
Commit count: 19

cargo fmt