-
Notifications
You must be signed in to change notification settings - Fork 250
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
feat(driver-adapters): enable Wasm on sql-query-connector
#4444
feat(driver-adapters): enable Wasm on sql-query-connector
#4444
Conversation
…asm32-unknown-unknown compilation
query-engine/connectors/sql-query-connector/src/database/mod.rs
Outdated
Show resolved
Hide resolved
#[cfg(target_arch = "wasm32")] | ||
macro_rules! trace { | ||
(target: $target:expr, $($arg:tt)+) => {{ | ||
// No-op in WebAssembly | ||
}}; | ||
($($arg:tt)+) => {{ | ||
// No-op in WebAssembly | ||
}}; | ||
} |
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.
trace!
macro for wasm32-*
#[cfg(not(target_arch = "wasm32"))] | ||
macro_rules! trace { | ||
(target: $target:expr, $($arg:tt)+) => { | ||
tracing::log::trace!(target: $target, $($arg)+); | ||
}; | ||
($($arg:tt)+) => { | ||
tracing::log::trace!($($arg)+); | ||
}; | ||
} |
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.
trace!
macro for native compilation.
CodSpeed Performance ReportMerging #4444 will degrade performances by 5.92%Comparing Summary
Benchmarks breakdown
|
…github.com:prisma/prisma-engines into feat/sql-query-connector-on-wasm32-unknown-unknown
…ery-connector-on-wasm32-unknown-unknown
…github.com:prisma/prisma-engines into feat/sql-query-connector-on-wasm32-unknown-unknown
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.
Changes look correct and reasonably tidy.
tracing = "0.1" | ||
tracing-futures = "0.2" | ||
uuid.workspace = true | ||
opentelemetry = { version = "0.17", features = ["tokio"] } | ||
tracing-opentelemetry = "0.17.3" | ||
quaint.workspace = true | ||
quaint = { path = "../../../quaint" } |
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.
Are these to prevent feature unification?
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.
Yes, but I spotted a problem while running the CI for request-handlers
.
I'm cherry-picking 96cd8ca 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.
(This indeed fixed the CI tests)
This PR closes https://github.com/prisma/team-orm/issues/283, and depends on #4442.