Coder Social home page Coder Social logo

Comments (7)

Odonno avatar Odonno commented on May 29, 2024

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.

NEmbgen avatar NEmbgen commented on May 29, 2024

@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.

Odonno avatar Odonno commented on May 29, 2024

Check this file here. But it certainly should work.

https://github.com/Odonno/surrealdb-migrations/blob/main/.cargo%2Fconfig.toml#L2

from surrealdb-migrations.

hpapier avatar hpapier commented on May 29, 2024

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.

Odonno avatar Odonno commented on May 29, 2024

You need to put that in .cargo/config.toml file.

from surrealdb-migrations.

NEmbgen avatar NEmbgen commented on May 29, 2024

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.

Odonno avatar Odonno commented on May 29, 2024

Ah yes, that's frustrating too. This should work:

RUSTFLAGS='--cfg surrealdb_unstable' cargo install surrealdb-migrations

from surrealdb-migrations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.