7 releases

0.1.6 Dec 1, 2023
0.1.5 Jul 24, 2023
0.1.3 Jun 28, 2023
0.1.0 Mar 24, 2023

#245 in Development tools

Download history 8/week @ 2023-10-30 8/week @ 2023-11-13 11/week @ 2023-11-20 56/week @ 2023-11-27 7/week @ 2023-12-04 11/week @ 2023-12-11 3/week @ 2023-12-18 22/week @ 2023-12-25 2/week @ 2024-01-01 1/week @ 2024-01-08 2/week @ 2024-01-15 1/week @ 2024-01-22 24/week @ 2024-01-29 3/week @ 2024-02-05 34/week @ 2024-02-12

62 downloads per month

Apache-2.0 OR MIT

135KB
3K SLoC

Duchess: silky smooth Java integration

Duchess is a Rust crate that makes it easy, ergonomic, and efficient to interoperate with Java code.

TL;DR

Duchess permits you to reflect Java classes into Rust and easily invoke methods on Java objects. For example the following Java code...

Logger logger = new log.Logger();
logger.addEvent(
    Event.builder()
        .withTime(new Date())
        .withName("foo")
        .build()
);

...could be executed in Rust as follows:

let logger = log::Logger::new().global().execute()?;
logger
    .add_event(
        log::Event::builder()
            .with_time(java::util::Date::new())
            .with_name("foo")
            .build(),
    )
    .execute()?;

Curious to learn more?

Check out the...

Curious to get involved?

Look for issues tagged with good first issue and join the Zulip.

Dependencies

~4–14MB
~153K SLoC