freepdfeditor/spike/F_rust_ffi_probe/rust/Cargo.toml

25 lines
825 B
TOML

# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: 2025 ai-ad4 and the FreePDFEditor contributors
#
# ADR-0005 build-friction probe crate. A staticlib so the C++ driver links it
# without a runtime .so dependency. crate-type = ["staticlib"] is the standard
# Rust-into-C++ integration shape; "cdylib" would be for a .so.
[package]
name = "fpe_rust_leaf"
version = "0.1.0"
edition = "2021"
license = "GPL-3.0-or-later"
[lib]
name = "fpe_rust_leaf"
crate-type = ["staticlib"]
path = "src/lib.rs"
# Release profile: the leaf decoder ships hardened. Mirrors the C++ side's
# -fstack-protector-strong / overflow checks via Rust's default release
# arithmetic checks and overflow guards.
[profile.release]
panic = "abort" # match the C++ side: no unwinding across the FFI
overflow-checks = true
lto = true