Comments (7)
Hello @NEmbgen
This is indeed a problem and surrealdb_unstable
feature flag is now mandatory for v1.2.x. Here is a link to the solution: https://discord.com/channels/902568124350599239/970338835990974484/1213250427487916032
You're gonna have to set rustflags
.
Sorry for the inconvenience. I expect this to disappear once surrealdb
v1.3.0 is released.
from surrealdb-migrations.
@Odonno thanks for your answer. Sadly putting it in
[build]
rustflags = ["--cfg", "surrealdb_unstable"]
or
[target.x86_64-pc-windows-msvc]
rustflags = ["--cfg", "surrealdb_unstable"]
does not work. It seems like I will have to wait for 1.3.0. Unless I'm doing something wrong still.
from surrealdb-migrations.
Check this file here. But it certainly should work.
https://github.com/Odonno/surrealdb-migrations/blob/main/.cargo%2Fconfig.toml#L2
from surrealdb-migrations.
Same error here, even with the fix suggested. :)
cargo.toml
[dependencies]
tokio = { version = "1", features = ["full"] }
axum = "0.7.4"
serde = { version = "1.0", features = ["derive"] }
surrealdb = { version = "1.2.0" }
surrealdb-migrations = "1.2.2"
[build]
rustflags = ["--cfg", "surrealdb_unstable"]
rustdocflags = ["--cfg", "surrealdb_unstable"]
[net]
git-fetch-with-cli = true
from surrealdb-migrations.
You need to put that in .cargo/config.toml
file.
from surrealdb-migrations.
That worked for me, thank you!
Just to add: The same problem occurs when using the install
command. Not sure where to place the config on that
from surrealdb-migrations.
Ah yes, that's frustrating too. This should work:
RUSTFLAGS='--cfg surrealdb_unstable' cargo install surrealdb-migrations
from surrealdb-migrations.
Related Issues (20)
- Migrate tests to cargo-nextest
- Split test library
- Running `cargo install surrealdb-migrations` currently fails HOT 2
- Running large migration file fails HOT 3
- Beta and nightly version support HOT 3
- Thankyou HOT 3
- Feature: Seeding HOT 3
- Feature: Publish to Homebrew
- Unable to install surrealdb-migrations error[E0658]: use of unstable library feature 'stdsimd' HOT 4
- Feature: use local config files HOT 2
- Bug: `READONLY` keyword HOT 1
- Provide a way to load migrations from a dir at runtime (not embedded) HOT 10
- Crate documentation not build for 1.2.0 HOT 2
- find alternative to 'names' crate HOT 2
- Failed to apply database migrations: _initial.json file not found in the migrations/definitions directory HOT 7
- Running `cargo install surrealdb-migrations' fails HOT 3
- Make new release for SurrealDB 1.4.0 HOT 2
- Cannot create JWKS token HOT 1
- Unable to install via Cargo HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from surrealdb-migrations.