Skip to content

Example only compiles with stored Cargo.lock  #3

Open
@eburdette0

Description

@eburdette0

When I clone and run the example, it compiles and works, really cool!

If I move all the code to a new project with the same sources and Cargo.toml, the build generates an error at line 62 in src/gaussian_plot/imp.rs:
expected cairo::context::Context, found gtk4::cairo::Context

It looks like this might be similar to this stackoverflow issue which was solved by resolving the dependency conflict between versions of cairo-rs in gtk4 and plotters-cairo:
https://stackoverflow.com/questions/75229974/how-do-i-fix-my-compatability-errors-when-using-plotterscairobackend-with-gtk

I get very similar compiler notes after the error, with two versions of cairo-rs showing up.

What is an appropriate resolution for this? To specify versions of gtk, plotters and plotters-cairo in the repository's .toml file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions