SkillAgentSearch skills...

Duchess

Silky smooth Java-Rust interop

Install / Use

/learn @duchess-rs/Duchess
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Duchess: silky smooth Java integration

<img src="https://img.shields.io/badge/chat-on%20Zulip-green"></img> <img src="https://img.shields.io/badge/Coverage-green"></img>

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

<img src="book/src/duchess.svg" width="300"></img>

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.

View on GitHub
GitHub Stars199
CategoryDevelopment
Updated1d ago
Forks21

Languages

Rust

Security Score

95/100

Audited on Mar 30, 2026

No findings