Skip to content

Commit 7c7bc04

Browse files
committed
jni converter moved to separate crate
1 parent a9b5eb5 commit 7c7bc04

9 files changed

Lines changed: 416 additions & 14 deletions

File tree

prebindgen-ext/Cargo.lock

Lines changed: 352 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

prebindgen-ext/Cargo.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#
2+
# Copyright (c) 2023 ZettaScale Technology
3+
#
4+
# This program and the accompanying materials are made available under the
5+
# terms of the Eclipse Public License 2.0 which is available at
6+
# http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
7+
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
8+
#
9+
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
10+
#
11+
# Contributors:
12+
# ZettaScale Zenoh Team, <zenoh@zettascale.tech>
13+
#
14+
15+
[package]
16+
name = "prebindgen-ext"
17+
version = "1.9.0"
18+
edition = "2021"
19+
license = "EPL-2.0 OR Apache-2.0"
20+
description = "Prebindgen JNI extensions for Zenoh."
21+
repository = "https://github.com/eclipse-zenoh/zenoh"
22+
23+
[dependencies]
24+
syn = { version = "2", features = ["full", "extra-traits"] }
25+
quote = "1"
26+
proc-macro2 = "1"
27+
prebindgen = "0.4.1"
28+
itertools = "0.12"

prebindgen-ext/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//! Prebindgen JNI extensions for Zenoh.
2+
//!
3+
//! This crate provides JNI binding generators for items marked with `#[prebindgen]`.
4+
5+
pub mod jni_converter;
6+
pub mod jni_type_binding;
7+
8+
pub use jni_converter::{JniStructConverter, JniMethodsConverter};
9+
pub use jni_type_binding::{JniTypeBinding, TypeBinding, InlineFn, ReturnEncode};

0 commit comments

Comments
 (0)