Skip to content

Commit

Permalink
Merge pull request #45 from mobusoperandi/no-workspace
Browse files Browse the repository at this point in the history
build: no cargo workspace
  • Loading branch information
mightyiam authored Jan 28, 2024
2 parents 6052ee1 + 6c93fdb commit c48bc42
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 66 deletions.
14 changes: 3 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 26 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
[workspace]
members = ["crates/*"]
resolver = "2"

[workspace.package]
[package]
name = "eelco"
description = "Nix doctests CLI"
version = "0.1.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/mobusoperandi/eelco"
keywords = ["nix", "doctest", "cli", "documentation", "test"]
categories = ["command-line-utilities", "development-tools::testing"]

[workspace.dependencies]
util = { path = "crates/util" }
[dependencies]
anyhow = { version = "1.0.72", features = ["backtrace"] }
camino = "1.1.6"
clap = "4.3.21"
comrak = "0.18.0"
derive_more = { version = "1.0.0-beta.2", features = ["deref", "display", "into_iterator", "constructor"] }
futures = "0.3.28"
glob = "0.3.1"
indoc = "2.0.3"
itertools = "0.11.0"
strip-ansi-escapes = "0.1.1"
tokio = { version = "1.29.1", features = ["macros", "rt-multi-thread", "io-util"] }

[dependencies.pty-process]
version = "0.4.0"
features = ["async"]
git = "https://github.com/mobusoperandi/pty-process.git"
rev = "7889630"

[dev-dependencies]
assert_cmd = "2.0.12"
assert_fs = "1.0.13"
indoc = "2.0.3"
File renamed without changes.
33 changes: 0 additions & 33 deletions crates/eelco/Cargo.toml

This file was deleted.

13 changes: 0 additions & 13 deletions crates/util/Cargo.toml

This file was deleted.

2 changes: 0 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@

commonArgs = {
src = craneLib.cleanCargoSource (craneLib.path ./.);
inherit (craneLib.crateNameFromCargoToml {cargoToml = ./crates/eelco/Cargo.toml;}) pname;
buildInputs = optional pkgs.stdenv.isDarwin pkgs.iconv;
cargoExtraArgs = "--package eelco";
};

cargoArtifacts = craneLib.buildDepsOnly commonArgs;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions crates/eelco/tests/misc.rs → tests/misc.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
mod util;

use util::with_eelco;

#[test]
Expand Down
2 changes: 2 additions & 0 deletions crates/eelco/tests/repl.rs → tests/repl.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
mod util;

use assert_fs::prelude::FileWriteStr;
use indoc::{formatdoc, indoc};
use util::with_eelco;
Expand Down
File renamed without changes.

0 comments on commit c48bc42

Please sign in to comment.