diff --git a/packages/rust/src/graph.ts b/packages/rust/src/graph.ts index aa8eb80..88b5e7e 100644 --- a/packages/rust/src/graph.ts +++ b/packages/rust/src/graph.ts @@ -3,6 +3,7 @@ import { CreateNodes, ProjectConfiguration, RawProjectGraphDependency, + normalizePath, workspaceRoot, } from '@nx/devkit'; import { @@ -35,7 +36,7 @@ export const createNodes: CreateNodes = [ for (const pkg of cargoPackages) { if (!isExternal(pkg)) { - const root = dirname(relative(ctx.workspaceRoot, pkg.manifest_path)); + const root = normalizePath(dirname(relative(ctx.workspaceRoot, pkg.manifest_path))); projects[root] = { root, name: pkg.name,