-
Notifications
You must be signed in to change notification settings - Fork 177
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
Remove spacetimedb-core as a dep of cli #2244
base: master
Are you sure you want to change the base?
Conversation
71f00ed
to
93c50bd
Compare
@@ -49,39 +47,33 @@ pub struct IncomingClaims { | |||
} | |||
|
|||
impl TryInto<SpacetimeIdentityClaims> for IncomingClaims { | |||
type Error = TokenValidationError; | |||
type Error = anyhow::Error; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was removed the TokenValidationError
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method never actually returned anything other than its Other(anyhow::Error)
variant, so it's easier to just return anyhow::Error
.
spacetimedb-client-api-messages.workspace = true | ||
spacetimedb-core.workspace = true | ||
spacetimedb-data-structures.workspace = true | ||
spacetimedb-data-structures = { workspace = true, features = ["serde"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is the feature newly needed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was being enabled by core
, but now core
isn't in the build graph.
@@ -6,7 +6,7 @@ license-file = "LICENSE" | |||
description = "Assorted data structures used in spacetimedb" | |||
|
|||
[features] | |||
serde = ["dep:serde"] | |||
serde = ["dep:serde", "hashbrown/serde"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this feature needed now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same reason - no longer being enabled by some other crate now that core
isn't in the build graph.
I'm broadly in favor of improving compile times. +1 to Mario's questions. Dumb question - what exactly is spacetimedb-core? At first glance, it seems entirely reasonable for the CLI to depend on a core spacetimedb library. I don't personally feel equipped to confirm that the changes don't do something meaningful, particularly around wasmtime. Can you add a bit more detail to the |
|
93c50bd
to
9057b09
Compare
I could copy over |
9057b09
to
e3f44a0
Compare
The internal tests are only because |
Description of Changes
This is possible now that standalone is now a separate binary from cli. This lets us separate concerns, and speed up compilation of the cli.
Expected complexity level and risk
1 - moves some stuff around but otherwise a pretty small change.
Testing