Rushmore Mushambi

Results 102 comments of Rushmore Mushambi

> Calling an `await` function is not the same as calling a regular function. You are assuming that all regular functions that will be called in an `async` macro will...

The issue is that those types are behind a `nightly` feature, which `futures-await` doesn't currently activate.

This is fixed in https://github.com/alexcrichton/futures-await/pull/73.

You do not need to move your code from main. You can put your async code inside an `async_block` macro.

Github formatting issues aside, this [should work](https://docs.rs/surrealdb/latest/surrealdb/engine/local/struct.RocksDb.html). How is `path` defined?

Closing this as I'm not able to reproduce. Both ```rust let db = Surreal::new::(PathBuf::from("/tmp/foodb")).await?; ``` and ```rust let db = Surreal::new::("/tmp/foodb").await?; ``` work fine for me.

Instead of ```json [ { "result": { "action": "CREATE", "id": "c53dcd8a-f46e-4b63-b764-d7fd95c03b8a", "recid": "person:4obyoxgbmsguqhnab19j", "result": [ { "op": "replace", "path": "/", "value": { "id": "person:4obyoxgbmsguqhnab19j", "name": 4546 } } ] }...

The `import` and `export` methods are currently not supported on Wasm in the Rust SDK. That's because of the use of file system APIs which are not available on Wasm....