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.1.0"
to your development
dependencies:
[dev-dependencies]
compile-time-create-file = "0.1.0"