Compile Error
Hi,
I downloaded all the files with teo-development-setup. It gave an error while trying to build Teo.
error: failed to select a version for the requirement teo-generator = "^0.3.0-alpha.0"``
Then I changed the 0.3.0-alpha-dev branch for all packages. This time I got a different error.
error: could not compile quaint-forked (lib) due to 1 previous error
error[E0283]: type annotations needed
--> /home/yasirakel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/quaint-forked-0.1.3-alpha.6/src/connector/postgres.rs:468:37
|
468 | config.user(self.username().borrow());
| ^^^^^^
|
= note: multiple `impl`s satisfying `Cow<'_, str>: Borrow<_>` found in the following crates: `alloc`, `core`:
- impl<'a, B> Borrow<B> for Cow<'a, B>
where B: ToOwned, B: ?Sized;
- impl<T> Borrow<T> for T
where T: ?Sized;
help: try using a fully qualified path to specify the expected types
|
468 | config.user(<Cow<'_, str> as Borrow<Borrowed>>::borrow(&self.username()));
| ++++++++++++++++++++++++++++++++++++++++++++
When exactly can I start using Teo?
Thanks
Hi @akelyasir, 0.3.0-alpha.1 is going to be released soon. I will dig into this.
I am able to install teo using cargo
- clone the repo https://github.com/teodevgroup/teo/blob/main/CONTRIBUTING.md#github-source
- clone quaint https://github.com/victorteokw/quaint
- make this change and build
// config.user(self.username().borrow());
config.user(<std::borrow::Cow<'_, str> as std::borrow::Borrow
>::borrow(&self.username())); - Update the teo-sql-connector and build quaint-forked = { version = "0.1.3-alpha.6", features = [ "postgresql" ], path = "../quaint-forked" }
- open teo and the local version cargo install --path .
Hi @victorteokw
It's been a long time since I didn't get an update. Is there a specific time for the update.
This is fixed in newest quaint forked