duchess

Crates.ioduchess
lib.rsduchess
version0.3.0
sourcesrc
created_at2023-03-24 21:03:26.332334
updated_at2024-07-22 21:53:13.963225
descriptionSilky smooth Java-Rust interop
homepage
repositoryhttps://github.com/duchess-rs/duchess
max_upload_size
id819706
size312,061
publish (github:duchess-rs:publish)

documentation

README

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().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. For more information on how to develop duchess, see Contributing. You may also be able to improve test coverage.

Commit count: 429

cargo fmt