RubyGems.org API Demo

Gem: rustorb

Info: The Ruby binding of rustorb, a CORBA ORB written in Rust: CORBA, PortableServer and CosNaming as the OMG Ruby Language Mapping (RCLM) has them, over the rustorb core through its C ABI. Stubs and skeletons are generated with rustorb-idl -bruby.

Authors: rustorb contributors

Downloads: 636

Version: 0.7.0

Project Homepage Content:

rustorb | RubyGems.org | your community gem host

The Ruby binding of rustorb, a CORBA ORB written in Rust: CORBA, PortableServer and CosNaming as the OMG Ruby Language Mapping (RCLM) has them, over the rustorb core through its C ABI. Stubs and skeletons are generated with rustorb-idl -bruby.

Required Ruby Version

>= 3.0

Authors

rustorb contributors

Versions

  1. 0.7.0
    1. source

      1. 0.7.0 source November 23, 2026 (31 MB)

Pushed by

SHA 256 checksum

Homepage URI Content:

GitHub - rustorb/rustorb: Rust製のCORBA実装 · GitHub
Skip to content
rustorbPublic

About

Rust製のCORBA実装

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

rustorb

rustorb

A CORBA ORB with its core written in Rust, and bindings for Rust, Python, C++ and Java. (日本語)

Documentation: https://rustorb.github.io/ (quick start, install and tutorials for every language)

rustorb speaks GIOP 1.0 to 1.2 over IIOP, SSLIOP and omniORB's Unix domain sockets, and is tested in CI against omniORB, omniORBpy and JacORB in every combination of client, server and naming service. It aims to replace omniORB / omniORBpy in existing systems: the Python binding generates the same API as omniidl -bpython, and a compatibility package runs omniORBpy applications such as OpenRTM-aist-Python unchanged.

  • Protocol: CDR, GIOP 1.0–1.2 with fragments, IORs, corbaloc: and corbaname:, code set negotiation, bidirectional GIOP, SSLIOP (TLS with rustls), omniORB's giop:unix endpoints (Unix domain sockets, Linux and macOS)
  • Server side: the POA with the standard policies, servant managers, default servants, adapter activators, the three thread models and the POAManagerFactory
  • Types: Any, TypeCode, DynAny, fixed, long double, valuetypes (custom, truncatable, boxed, supports), abstract interfaces
  • Naming Service: CosNaming client and server, and the rustorb-names daemon (a replacement for omniNames, with persistence)
  • Asynchronous calls: callback AMI (sendc_ and reply handlers) for Python, C++ and Java with rustorb-idl -Wbami, an optional async API for Rust
  • More: DII / DSI (Rust, Python, C++ and Java), Portable Interceptors, policies, call timeouts and SyncScope for oneway calls, omniORBpy's omniORB.URI, tracing

Install

Language Package IDL compiler
Rust rustorb-core, rustorb-naming (crates.io) rustorb-codegen in build.rs
Python pip install rustorb (abi3 wheels for CPython 3.9+) rustorb-idl -bpython
C++ (C++17) rustorb-native archive of the GitHub release, or cmake --install of cpp/; then find_package(rustorb) rustorb-idl -bc++11
Java (22+) rustorb-<version>.jar and the shared library of rustorb-native from the GitHub release rustorb-idl -bjava

The IDL compiler is pip install rustorb-idl for every language; it lives in rustorb/rustorb-idl and is released on its own. The naming service is cargo install rustorb-naming (the rustorb-names binary).

Quick start

// Echo.idl
module Example {
  interface Echo {
    string echo(in string message);
  };
};

A Python server and client:

pip install rustorb rustorb-idl
rustorb-idl -bpython Echo.idl          # Example/, Example__POA/
import sys
from rustorb import CORBA, PortableServer
import Example, Example__POA

class EchoImpl(Example__POA.Echo):
    def echo(self, message):
        return message

orb = CORBA.ORB_init(sys.argv)
poa = orb.resolve_initial_references("RootPOA")
poa._get_the_POAManager().activate()
ior = orb.object_to_string(EchoImpl()._this())

echo = orb.string_to_object(ior)._narrow(Example.Echo)
print(echo.echo("hello"))
orb.destroy()

The getting started guide goes through the same server and client in Rust, Python, C++ and Java, registered in the naming service; the code is in examples/, and examples/run-all.sh runs every server with every client.

Documentation

Building from source

cargo build --workspace
cargo test --workspace

The Python, C++ and Java tests need the IDL compiler, at the version pinned in tools/rustorb-idl.txt (pip install -r tools/rustorb-idl.txt; to try a checkout of rustorb-idl, set RUSTORB_IDL_DIR to it):

pip install -r tools/rustorb-idl.txt
python/build-native.sh                    # the native module, into python/rustorb
python3 -m unittest discover -s python/tests
cmake -S cpp -B build/cpp && cmake --build build/cpp && ctest --test-dir build/cpp
mvn -f java/pom.xml verify                # Java 22 or later

The Rust code generated from IDL that is checked in (rustorb-naming, interop/impls/rustorb, the mapping tests in tests/mapping) is regenerated with tools/generate-rust.sh when the IDL or the generator changes; CI checks it. Fuzzing needs nightly and cargo-fuzz: cargo +nightly fuzz run giop_message.

License

rustorb is licensed under either of

at your option.

The IDL compiler (rustorb-idl and the rustorb-codegen crate, in the separate repository rustorb/rustorb-idl) is GPL-3.0-or-later, because it builds on idl_parser. Code it generates is not covered by that license: the owner of the input IDL chooses its license, and the boilerplate rustorb puts into it is MIT OR Apache-2.0.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in rustorb by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Rust製のCORBA実装

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

Versions:

Owners: