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

get some trouble with compile canvas components #19289

Closed
Brooooooklyn opened this issue Nov 19, 2017 · 4 comments
Closed

get some trouble with compile canvas components #19289

Brooooooklyn opened this issue Nov 19, 2017 · 4 comments

Comments

@Brooooooklyn
Copy link

Brooooooklyn commented Nov 19, 2017

I want build a node-canvas like project use components/canvas,
but got a compile error when I had my first try.

image

rustc version

image

cargo version

image

here is my test project: https://github.com/Brooooooklyn/node-servo-canvas

here is my Cargo.toml:

[package]
name = "node-servo-canvas"
version = "0.1.0"

[dependencies]
canvas = { path = "servo/components/canvas" }
@jdm
Copy link
Member

jdm commented Nov 19, 2017

Can you provide more information about the error?

@Brooooooklyn
Copy link
Author

sorry, I updated my comment, add screenshot and Cargo.toml info

@jdm
Copy link
Member

jdm commented Nov 20, 2017

That's because the servo crate feature is not enabled: https://github.com/servo/servo/blob/master/components/malloc_size_of/lib.rs#L700-L708

@Brooooooklyn
Copy link
Author

ok, I see, I will use webrender directly

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