create-rust-app icon indicating copy to clipboard operation
create-rust-app copied to clipboard

Not all traits implemented

Open DennohKim opened this issue 1 year ago • 12 comments

Error

How can i resolve this error when boostrapping create-rust-app?

DennohKim avatar Aug 05 '24 07:08 DennohKim

Getting this too

rivertam avatar Aug 08 '24 18:08 rivertam

me either

Adamkaram avatar Sep 07 '24 16:09 Adamkaram

modify Cargo.toml can fix this issue, but more errors are coming...😭

[dependencies.diesel]
default-features = false
features = ["postgres", "r2d2", "chrono"]
version = "=2.1"

gitbobobo avatar Sep 14 '24 17:09 gitbobobo

continue modify Cargo.toml, lock version of "dsync" to "0.0.16", then "cargo fullstack" is OK now.

pegasusplus avatar Sep 29 '24 19:09 pegasusplus

Now runtime panik:

Starting frontend server @ http://localhost:21012/ thread 'tokio-runtime-worker' panicked at /Users/zhenpingzhao/.cargo/registry/src/index.crates.io-6f17d22bba15001f/create-rust-app-11.0.0/src/dev/frontend_dev_server.rs:29:10: called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" } stack backtrace:

Need more config file?

pegasusplus avatar Sep 29 '24 19:09 pegasusplus

I am also facing the issue. I also tried with dsync = "0.0.16" but did not work.

.cargo/registry/src/index.crates.io-6f17d22bba15001f/diesel_logger-0.3.0/src/lib.rs:80:1 | 80 | / impl<C> Connection for LoggingConnection<C> 81 | | where 82 | | C: Connection + 'static, 83 | | <C as Connection>::Backend: std::default::Default, 84 | | <C::Backend as Backend>::QueryBuilder: Default, | |___________________________________________________^ missing instrumentation, set_instrumentation in implementation

ideakaran avatar Oct 02 '24 13:10 ideakaran

Seems to be an issue with https://github.com/shssoichiro/diesel-logger, I'll see if I can dig into this a bit more

AnthonyMichaelTDM avatar Oct 14 '24 20:10 AnthonyMichaelTDM

Thanks to the merged commit above, diesel_logger seems to have been fixed. ~~Unfortunately a new release has not been made yet so modifying Cargo.toml to use the shssoichiro/diesel-logger master branch (or the commit branch) is necessary~~

edit: v0.4.0 released

Cargo.toml

[patch.crates-io]
diesel_logger = "0.4.0"

Unfortunately there seems to be a separate issue with dsync v0.1.0 delivering some breaking changes to the initial file in .cargo/bin/dsync.rs 😩. I don't believe that is linked to this issue but figured I would mention it here before creating a separate issue as dsync was brought up earlier.

elanora96 avatar Nov 15 '24 21:11 elanora96

Since this error has been patched upstream we can upgrade diesel-logger to 0.4.0 and it should work as expected!

rootCircle avatar Nov 19 '24 12:11 rootCircle

Thanks for sharing folks!

Is this all we need?

https://github.com/Wulf/create-rust-app/pull/379

Wulf avatar Mar 10 '25 09:03 Wulf

How can we solve this problem ?

Florian9M avatar Apr 13 '25 12:04 Florian9M

There were quite a few issues in the default template with the later releases of dsync. I started working on it in my fork elanora96/create-rust-app, but admittedly I ended up not using create-rust-app and abandoned it. Fair warning I was also less experienced with Rust last time I checked this out :p

I can take another look at it if help is needed, though I cannot necessarily commit to any timeline

elanora96 avatar Apr 14 '25 21:04 elanora96

Thanks for your patience everyone, I had a change to take a deeper look and fix all remaining issues. Please feel free to re-open this if the problem persists.

P.S. @elanora96 love your "original sin of webdev" bio line haha

Edit: forgot to mention that this is fixed in 11.0.3

Wulf avatar Jun 22 '25 04:06 Wulf