Skip to content

Commit

Permalink
fix cbindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice committed Oct 18, 2024
1 parent 06bf268 commit 77b9e95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bindings/c/cbindgen.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ sys_includes = ["stdint.h", "stddef.h", "stdbool.h"]
[parse]
include = ["opendal"]
parse_deps = true

[fn]
deprecated_with_note = "__attribute__((deprecated({})))"
1 change: 1 addition & 0 deletions bindings/c/src/operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ pub unsafe extern "C" fn opendal_operator_delete(
///
/// * If the `path` points to NULL, this function panics, i.e. exits with information
#[no_mangle]
#[deprecated(note = "Use opendal_operator_exists() instead.")]
pub unsafe extern "C" fn opendal_operator_is_exist(
op: &opendal_operator,
path: *const c_char,
Expand Down

0 comments on commit 77b9e95

Please sign in to comment.