surrealdb / surrealdb.wasm

A WebAssembly engine for the SurrealDB JavaScript SDK
https://surrealdb.com
Apache License 2.0
112 stars 17 forks source link

Documentation: How can we build surrealdb.wasm with SurrealDB 2.0 Alpha? #86

Open nickchomey opened 2 months ago

nickchomey commented 2 months ago

Description

I am primarily using surrealdb in the browser, so would love the opportunity to test the new v2 alpha and provide feedback on bugs and features.

How would I go about building this? Just change the

surrealdb = { version = "1.5.2" to 2.0.0-alpha.1 in Cargo.toml?

Is there an existing issue for this?

Code of Conduct

nickchomey commented 2 months ago

Chat GPT tells me that that likely wont work because the alpha is probably not on crates.io. I checked and it isn't. It suggests using this

surrealdb = { git = "https://github.com/surrealdb/surrealdb", tag = "v2.0.0-alpha.1", default-features = false, features = ["sql2"] }

I'll try it out later, but hopefully someone can confirm