feat(truapi-server): add host logic primitives#255
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
2cc45b1 to
8ad3cf9
Compare
a5e9e7c to
a2f623f
Compare
|
Boundary question before this layer settles: #254 looks like protocol/runtime mechanics, but this PR makes The concern is mostly architectural, not a correctness nit. If the intended architecture is that
That would let the stack land without locking us into two competing host SDKs. The app migration path can then be: generated TrUAPI dispatcher -> useragent-kit implementation -> platform callbacks only for UI/storage/permissions/navigation. |
8ad3cf9 to
8ddbe78
Compare
96bec3b to
8035a9d
Compare
3202591 to
fb3e219
Compare
8035a9d to
a696d4e
Compare
|
@replghost
|
a696d4e to
a3e6efa
Compare
valentinfernandez1
left a comment
There was a problem hiding this comment.
Just small nit about versioned enums but aside from that this PR looks solid
|
|
||
| /// Versioned remote message body. | ||
| #[derive(Debug, Clone, PartialEq, Eq, Encode, Decode)] | ||
| pub enum RemoteMessageData { |
There was a problem hiding this comment.
Is the plan for versioning here to expand the RemoteMessageData enum with new versions as new messages are needed?
Would be a good thing to have this documented
|
|
||
| /// Versioned legacy transaction-creation payload. | ||
| #[derive(Debug, Clone, PartialEq, Eq, Encode, Decode)] | ||
| pub enum CreateTransactionLegacyPayload { |
There was a problem hiding this comment.
Same here, would be good to have documentation on what should be the process for adding new versions
Adds the host-agnostic
truapi-serverlogic primitives for session state, permissions, product accounts, SSO pairing/messages, dotns routing, and statement-store handling.Stack
Part of the Rust core runtime port (umbrella: #104), split into a reviewable stack. Merge bottom-up.
Local verification
cargo build --workspace --all-targets --all-featurescargo +nightly fmt --checkcargo +nightly clippy --workspace --all-targets --all-features -- -D warningscargo test --workspace --all-features