jailguard 0.1.2

Pure-Rust prompt-injection detector with 1.5MB embedded MLP classifier. 98.40% accuracy, p50 14ms CPU inference, 8-class attack taxonomy. Apache-2.0/MIT alternative to Rebuff and Lakera Guard.
Documentation
# cbindgen — generates include/jailguard.h from src/c_api.rs.
# https://github.com/mozilla/cbindgen/blob/master/docs.md

language = "C"

include_guard = "JAILGUARD_H"
pragma_once = false
cpp_compat = true

documentation = true
documentation_style = "doxy"

header = """\
/**
 * jailguard.h — C ABI for the JailGuard prompt-injection detector.
 *
 * Generated by cbindgen from src/c_api.rs. DO NOT EDIT MANUALLY.
 *
 * Stable across MAJOR versions of jailguard. See c_api.rs for the
 * full error-code table and memory-ownership contract.
 *
 * Note: a duplicate `#define EMBEDDING_DIM 384` may appear in this
 * file due to cbindgen scanning private consts in adjacent modules.
 * The two definitions are identical in value, so the duplicate is
 * harmless (modulo a -Wduplicate-define preprocessor warning).
 */
"""

[parse]
parse_deps = false

[fn]
prefix = ""
postfix = ""

[enum]
prefix_with_name = false
rename_variants = "None"