Skip to content

can't use local crates in depedencies #45

Description

@mirsella

hello !

i want to use crabtime in a workspace setup, in crate A. but i need to use a type defined in crate B in the compile time macro.
but: crabtime::eval or crabtime::function with [build-dependencies] dont work with path or workspace dependencies as the build crate created by crabtime path is nested inside target.

Example repro: https://github.com/mirsella/crabtime-path-dep

possible solutions idea:

  • allow #![dependency(anyhow = "1.0")] even in nightly and support more options,
    for example #![dependency(anyhow = { path = "../../../../b"})]
  • auto convert the relative path in [build-dependencies] when creating the crate. probably the best solution ?

thanks !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions