Expand description
Crate zerodds-corba-cos-trading. Safety classification: STANDARD.
OMG Trading Object Service (CosTrading) — pure-Rust no_std + alloc,
forbid(unsafe_code). Service discovery via a constraint language:
providers export typed offers (service type + properties + object ref) and
consumers look them up with boolean constraint expressions over the
properties (e.g. "Speed > 100 and Color == 'red'") plus optional
preferences for result ordering.
Implements:
Value— typed property values (property).- Constraint language — tokenizer + recursive-descent parser + evaluator
over the OMG trading constraint grammar subset (
constraint). Trader— register (export/withdraw) + lookup (querywith constraint + preferences) over an in-memory offer DB (trader).ServiceTypeRepository— service-type inheritance graph with subtype matching + mandatory check (service_type).DynamicPropEval— dynamic properties computed per query (dynamic).Federation— trader federation withLink/Proxy, query forwarding across trader boundaries (federation).
Spec: OMG Trading Object Service. Part of the “optional profiles as differentiation” strategy (subordinate to the OTS).
Re-exports§
pub use constraint::Constraint;pub use constraint::ConstraintError;pub use dynamic::DynamicPropEval;pub use federation::Federation;pub use federation::FederationError;pub use federation::FollowOption;pub use federation::Link;pub use federation::ProxyOffer;pub use property::Value;pub use service_type::PropertyDecl;pub use service_type::PropertyMode;pub use service_type::ServiceType;pub use service_type::ServiceTypeRepository;pub use service_type::TypeError;pub use trader::ExportError;pub use trader::Offer;pub use trader::OfferId;pub use trader::Preference;pub use trader::Trader;
Modules§
- constraint
- The OMG Trading constraint language — tokenizer, recursive-descent parser, and evaluator over a property map.
- dynamic
- Dynamic Properties (CosTradingDynamic
DynamicPropEval). - federation
- Trader federation (CosTrading
Link+Proxy). - property
- Typed property values (CosTrading
PropertyValueas ananysubset). - service_
type ServiceTypeRepository(CosTradingRepos) — the service-type inheritance graph.- trader
Trader— register (export/withdraw) + lookup (query) over an in-memory offer DB (CosTradingRegister+Lookup).