Skip to content

Commit 9d6889e

Browse files
committed
docs: add additional requirements for schema
1 parent 626c290 commit 9d6889e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/ffi/context.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use uuid::fmt::Hyphenated;
1919
/// Violating any of the following constraints will result in undefined behavior:
2020
///
2121
/// - `schema` must be a valid pointer returned by [`schema_new`].
22+
/// - `schema` must be alive, and unmodified at least until [`context_free`] is called on the result
2223
///
2324
/// [`schema_new`]: crate::ffi::schema::schema_new
2425
#[no_mangle]

src/ffi/router.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use uuid::Uuid;
2323
/// Violating any of the following constraints will result in undefined behavior:
2424
///
2525
/// - `schema` must be a valid pointer returned by [`schema_new`].
26+
/// - `schema` must be alive, and unmodified at least until [`router_free`] is called on the result
2627
///
2728
/// [`schema_new`]: crate::ffi::schema::schema_new
2829
#[no_mangle]

0 commit comments

Comments
 (0)