rustorb¶
A CORBA ORB with its core written in Rust, and bindings for Rust, Python, C++, Java, C#, C and Ruby.
rustorb speaks GIOP 1.0 to 1.2 over IIOP, SSLIOP and omniORB's Unix domain
sockets, and is tested against
omniORB, omniORBpy and JacORB in every combination of client, server and
naming service. It aims to replace omniORB and 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.
-
A server and a client in Python, in five minutes, with
pipor with Docker. -
The packages for Rust, Python, C++, Java, .NET, C and Ruby, the IDL compiler and the naming service.
-
One IDL interface, a server and a client in each language, found through the naming service, all talking to each other.
-
The POA, Any and valuetypes, DII / DSI, callback AMI, TLS and Unix sockets, timeouts, and moving from omniORBpy.
-
ORB options, the naming service, and the design documents.
What is in it¶
- Protocol: CDR, GIOP 1.0–1.2 with fragments, IORs,
corbaloc:andcorbaname:, code set negotiation, SSLIOP (TLS with rustls), omniORB'sgiop:unixendpoints (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-namesdaemon (a replacement for omniNames, with persistence) - Asynchronous calls: callback AMI (
sendc_and reply handlers) for Python, C++, Java, C#, C and Ruby withrustorb-idl -Wbami, an optional async API for Rust - More: DII / DSI and Portable Interceptors (every language), policies, call timeouts
and
SyncScopefor oneway calls, omniORBpy'somniORB.URI
Languages¶
| Language | Mapping | Package | IDL compiler |
|---|---|---|---|
| Rust | rustorb's own (mapping) | rustorb-core, rustorb-naming on crates.io |
rustorb-codegen in build.rs |
| Python 3.9+ | the standard IDL to Python mapping, omniORBpy layout | pip install rustorb |
rustorb-idl -bpython |
| C++17 | IDL to C++11 | rustorb-native from the GitHub release |
rustorb-idl -bc++11 |
| Java 22+ | IDL to Java (org.omg.*), through the FFM API |
rustorb-<version>.jar from the GitHub release |
rustorb-idl -bjava |
| C# (.NET 8+) | IDL4 to C# | NuGet Rustorb |
rustorb-idl -bcsharp |
| C99 | the OMG C mapping | rustorb-c from the GitHub release |
rustorb-idl -bc |
| Ruby 3.0+ | the OMG Ruby mapping (RCLM 1.2) | gem install rustorb |
rustorb-idl -bruby |
The current version is 0.7.0 (release notes, changelog). Before 1.0, a new minor version may change the API.
License¶
rustorb is licensed under either of the Apache License, Version 2.0 or the
MIT license, at your option. The IDL compiler (rustorb-idl and the
rustorb-codegen crate) is GPL-3.0-or-later, because it builds on
idl_parser; the code it
generates is not covered by that license.