Reworked project structure for new binary.

Pre-emptively bumped version to `2.0.0`.

rematch compiles and links correctly. repatch also links to rematch correctly.

Documented manifest: We don"t want LTO to be off, and we don"t want more than 1 codegen unit: The project is now split over multiple crates so cross-crate optimisation is needed or there may be a performance regression in rematch.

Fortune for rematch's current commit: Future curse − 末凶
repatch
Avril 3 years ago
parent d9ad1bafdf
commit 012e15e1bc
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -1,12 +1,13 @@
[package]
name = "rematch"
version = "0.1.0"
version = "2.0.0"
authors = ["Avril <flanchan@cumallover.me>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.release]
# We have multiple "crates" in this project, so fat LTO and single codegen for better inlining and cross-crate optimisation.
opt-level = 3
lto = "fat"
codegen-units = 1

@ -1,7 +1,6 @@
#![allow(dead_code)]
mod re;
mod text;
use rematch::*;
fn main() -> Result<(), Box<dyn std::error::Error>>
{

@ -0,0 +1,6 @@
use rematch::*;
fn main()
{
println!("Hello world!");
}

@ -0,0 +1,5 @@
#![allow(dead_code)]
pub mod re;
pub mod text;
Loading…
Cancel
Save