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

Add skeleton of xmtp_mls crate #272

Merged
merged 4 commits into from
Oct 20, 2023
Merged

Add skeleton of xmtp_mls crate #272

merged 4 commits into from
Oct 20, 2023

Conversation

richardhuaaa
Copy link
Contributor

This creates an xmtp_mls crate, and copies over some of the common things we'll need from the xmtp crate:

  • Networking
  • Database
  • Client
  • ClientBuilder
  • Associations

There is no MLS-specific logic in this PR. I've made the Account object an empty struct for now, Client does no business logic other than holding the API client and DB, and there are no models in the database. The only changes are stripping out vmac-specific logic and wrangling to make the whole thing compile.

Happy to port over #268 once it lands, if it's a hassle @dmccartney

@richardhuaaa richardhuaaa requested a review from jhaaaa as a code owner October 19, 2023 23:59
@richardhuaaa richardhuaaa requested review from a team and insipx October 19, 2023 23:59
Copy link
Contributor

@neekolas neekolas left a comment

Choose a reason for hiding this comment

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

Looking very tidy

hex = "0.4.3"
libsqlite3-sys = { version = "0.26.0", optional = true}
log = "0.4.17"
openmls = { path = "../../openmls/openmls", features = ["test-utils"] }
Copy link
Contributor

@neekolas neekolas Oct 20, 2023

Choose a reason for hiding this comment

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

We should probably make a fork and just point at that everywhere

I have a fork now

Copy link
Contributor

@insipx insipx left a comment

Choose a reason for hiding this comment

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

nits w.r.t errors. I have some other possible changes in #271, so I won't hold this one up

xmtp_mls/src/account.rs Outdated Show resolved Hide resolved
xmtp_mls/src/association.rs Outdated Show resolved Hide resolved
@richardhuaaa richardhuaaa merged commit 6804f10 into main Oct 20, 2023
10 of 12 checks passed
@richardhuaaa richardhuaaa deleted the rich/xmtp_mls branch October 20, 2023 18:18
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.

3 participants