Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish on crates.io #1

Closed
danielnehrig opened this issue Sep 22, 2022 · 4 comments
Closed

Publish on crates.io #1

danielnehrig opened this issue Sep 22, 2022 · 4 comments

Comments

@danielnehrig
Copy link

there is no crate even though the website links to one

@lukechu10
Copy link
Owner

Yes I'm planning to publish a release soon but there are a few things I wish to finish up. Also it currently relies on an unpublished version of sycamore so I will need to publish that first.

If you want to use this, you could rely on a git dependency for now.

@lukechu10 lukechu10 changed the title crate Publish on crates.io Sep 22, 2022
@danielnehrig
Copy link
Author

i've tried that but adding the crate results in a error for me

error[E0599]: no method named `to_web_sys` found for type parameter `G` in the current scope
   --> /Users/dNehrig/.cargo/git/checkouts/mdsycx-fc781c53a3901389/2bd0e21/mdsycx/src/components.rs:124:45
    |
92  | fn events_to_view<'a, G: Html>(
    |                       - method `to_web_sys` not found for this type parameter
...
124 |                             let node = node.to_web_sys();
    |                                             ^^^^^^^^^^ method not found in `G`

to be fair im using perseus for building my app

@lukechu10
Copy link
Owner

lukechu10 commented Sep 23, 2022

i've tried that but adding the crate results in a error for me

error[E0599]: no method named `to_web_sys` found for type parameter `G` in the current scope
   --> /Users/dNehrig/.cargo/git/checkouts/mdsycx-fc781c53a3901389/2bd0e21/mdsycx/src/components.rs:124:45
    |
92  | fn events_to_view<'a, G: Html>(
    |                       - method `to_web_sys` not found for this type parameter
...
124 |                             let node = node.to_web_sys();
    |                                             ^^^^^^^^^^ method not found in `G`

to be fair im using perseus for building my app

Yes because we are relying on unpublished version of sycamore. You'll need to patch sycamore like here:

mdsycx/Cargo.toml

Lines 4 to 5 in 2bd0e21

[patch.crates-io]
sycamore = { git = "https://github.com/sycamore-rs/sycamore", rev = "2a7d015" }

@lukechu10
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants