Skip to content

Creating exercises with dependencies #897

Closed
@dabreegster

Description

@dabreegster

@Robinlovelace and I are interested in creating a bunch of exercises to teach people how to use some https://github.com/georust/geo crates. Right now, none of the exercises pull in any external dependencies, and adding the dependencies to Cargo.toml in the repo has no effect -- because that's for the rustlings tool itself. I really quickly dug around to figure out how the tool compiles each exercise and found

Mode::Clippy => {
. It looks like we could write a temporary Cargo.toml file for the exercise to glue in some dependencies. I'm curious if anybody here has thought about doing this before (but didn't spot any issues) and if there's an opinion how to support it, possibly as a hack in a fork of this repo, but ideally as some kind of configuration for sets of exercises. Thanks!

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