Crates.io | compile-time-create-file |
lib.rs | compile-time-create-file |
version | 0.1.0 |
source | src |
created_at | 2021-09-17 13:52:12.362732 |
updated_at | 2021-09-17 17:54:42.564486 |
description | Create files and directories at compile time using a procedural macro in Rust. |
homepage | |
repository | https://github.com/mondeja/compile-time-create-file |
max_upload_size | |
id | 452784 |
size | 9,720 |
Create files and directories at compile time using a procedural macro in Rust.
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
);
"
);
Add compile-time-create-file = "0.0.1"
under your development
dependencies:
[dev-dependencies]
compile-time-create-file = "0.0.1"