Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(tauri): new tunnel state api #1967

Draft
wants to merge 12 commits into
base: develop
Choose a base branch
from
Draft

Conversation

doums
Copy link
Contributor

@doums doums commented Jan 21, 2025

in short switch to the new tunnel state API WIP

This change is Reviewable

#[derive(Default, Debug, Clone, Serialize, PartialEq, TS, strum::Display)]
#[ts(export)]
#[serde(rename_all = "camelCase")]
pub enum TunnelState {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. A bit unfortunate that you can't reuse the nym-vpn-lib-types and From conversions provided by #1950.

Copy link
Contributor Author

@doums doums Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ja that's fine. having full control over my own proto types translation is the way. Simple.
No need an extra traslation layer.
Protobuf is there to enforce the type system cross boundary anyway.

@doums doums force-pushed the pierre/tunnel_state branch 2 times, most recently from ca81be2 to 005107d Compare January 22, 2025 19:19
@doums doums force-pushed the pierre/tunnel_state branch from 88f4a3e to a8eb198 Compare January 22, 2025 22:48
@doums doums force-pushed the pierre/tunnel_state branch from be9ee77 to 38a0985 Compare January 22, 2025 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants