Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
rename to axoproject
Browse files Browse the repository at this point in the history
  • Loading branch information
Gankra committed Mar 27, 2023
1 parent f453728 commit e50d6d6
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
exclude = ["tests/projects/"]

[package]
name = "axo-project"
name = "axoproject"
description = "project detection logic for various axo.dev applications"
version = "0.1.0"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/axodotdev/cargo-dist"
repository = "https://github.com/axodotdev/axoproject"
exclude = [
"book/*",
"src/snapshots/*",
Expand All @@ -18,7 +18,7 @@ exclude = [
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[[bin]]
name = "axo-project"
name = "axoproject"
required-features = ["cli"]

[features]
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# axo-project
# axoproject

[![crates.io](https://img.shields.io/crates/v/axo-project.svg)](https://crates.io/crates/axo-project)
[![docs](https://docs.rs/axo-project/badge.svg)](https://docs.rs/axo-project)
[![Rust CI](https://github.com/axodotdev/axo-project/workflows/Rust%20CI/badge.svg?branch=main)](https://github.com/axodotdev/axo-project/actions/workflows/ci.yml)
[![crates.io](https://img.shields.io/crates/v/axoproject.svg)](https://crates.io/crates/axoproject)
[![docs](https://docs.rs/axoproject/badge.svg)](https://docs.rs/axoproject)
[![Rust CI](https://github.com/axodotdev/axoproject/workflows/Rust%20CI/badge.svg?branch=main)](https://github.com/axodotdev/axoproject/actions/workflows/ci.yml)

A tool that handles the details of detecting a cargo/npm workspace/project at a given directory,
and making sense of the structure. This should be used by cargo-dist and oranda to share that logic.
2 changes: 1 addition & 1 deletion src/javascript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub fn get_project(start_dir: &Utf8Path) -> Result<WorkspaceInfo> {

// FIXME: it's unfortunate that we're loading the package.json twice!
// Also arguably we shouldn't hard fail if we fail to make sense of the
// binaries... except the whole point of axo-project is to find binaries?
// binaries... except the whole point of axoproject is to find binaries?
let build_manifest = oro_common::BuildManifest::from_path(&manifest_path)
.into_diagnostic()
.wrap_err("failed to parse package.json binary info")?;
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub enum WorkspaceKind {
/// Info on the current workspace
///
/// This can either be a cargo workspace or an npm workspace, the concepts
/// are conflated to let users of axo-project handle things more uniformly.
/// are conflated to let users of axoproject handle things more uniformly.
pub struct WorkspaceInfo {
/// The kinf of workspace this is (Rust or Javascript)
pub kind: WorkspaceKind,
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::path::PathBuf;

use axo_project::WorkspaceInfo;
use axoproject::WorkspaceInfo;
use camino::Utf8PathBuf;

fn main() -> Result<(), miette::Report> {
Expand All @@ -14,7 +14,7 @@ fn main() -> Result<(), miette::Report> {
.unwrap_or_else(|| std::env::current_dir().expect("couldn't get current working dir!?"));
let start_dir = Utf8PathBuf::from_path_buf(start_dir).expect("project path isn't utf8!?");

if let Some(project) = axo_project::get_project(&start_dir) {
if let Some(project) = axoproject::get_project(&start_dir) {
print_project(&project);
} else {
eprintln!("Couldn't find a project in {}", start_dir);
Expand Down
4 changes: 2 additions & 2 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ fn test_self_detect() {
assert_eq!(project.package_info.len(), 1);

let package = &project.package_info[0];
assert_eq!(package.name, "axo-project");
assert_eq!(package.name, "axoproject");
assert_eq!(package.binaries.len(), 1);

let binary = &package.binaries[0];
assert_eq!(binary, "axo-project");
assert_eq!(binary, "axoproject");
}

#[cfg(feature = "cargo-projects")]
Expand Down

0 comments on commit e50d6d6

Please sign in to comment.