Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,8 @@ jobs:
- name: Checkout raysense
uses: actions/checkout@v6

- name: Checkout rayforce
uses: actions/checkout@v6
with:
repository: RayforceDB/rayforce
path: deps/rayforce

- name: Build rayforce library
run: make -C deps/rayforce lib

- name: Check formatting
run: cargo fmt --check

- name: Run tests
run: cargo test
env:
RAYFORCE_DIR: ${{ github.workspace }}/deps/rayforce
29 changes: 5 additions & 24 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,8 @@ jobs:
- name: Checkout raysense
uses: actions/checkout@v6

- name: Checkout rayforce
uses: actions/checkout@v6
with:
repository: RayforceDB/rayforce
path: deps/rayforce

- name: Build rayforce library
run: make -C deps/rayforce lib

- name: Test workspace
- name: Test
run: cargo test
env:
RAYFORCE_DIR: ${{ github.workspace }}/deps/rayforce

- name: Package and publish crates
shell: bash
Expand Down Expand Up @@ -119,30 +108,22 @@ jobs:
wait_for_crate "$package" "$version"
}

publish_crate rayforce-sys
publish_crate raysense-core
publish_crate raysense-memory
publish_crate raysense-cli
publish_crate raysense
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
RAYFORCE_DIR: ${{ github.workspace }}/deps/rayforce

- name: Post-release smoke
if: ${{ github.event_name != 'workflow_dispatch' || inputs.dry_run != true }}
shell: bash
run: |
set -euo pipefail
version="$(sed -n 's/^version = "\(.*\)"/\1/p' crates/raysense/Cargo.toml | head -n 1)"
version="$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n 1)"
smoke_dir="$(mktemp -d)"

RAYFORCE_DIR="${{ github.workspace }}/deps/rayforce" \
cargo install raysense --version "$version" --root "$smoke_dir/install"
"$smoke_dir/install/bin/raysense" rayforce-version
cargo install raysense --version "$version" --root "$smoke_dir/install"
"$smoke_dir/install/bin/raysense" --version

cargo new "$smoke_dir/library-smoke"
cd "$smoke_dir/library-smoke"
cargo add "raysense@$version"
RAYFORCE_DIR="${{ github.workspace }}/deps/rayforce" cargo check
env:
RAYFORCE_DIR: ${{ github.workspace }}/deps/rayforce
cargo check
36 changes: 24 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

[workspace]
members = [
"crates/rayforce-sys",
"crates/raysense",
"crates/raysense-cli",
"crates/raysense-core",
"crates/raysense-memory",
]
resolver = "2"

[workspace.package]
[package]
name = "raysense"
version = "0.2.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/RayforceDB/raysense"
description = "Architectural X-ray for your codebase. Live, local, agent-ready."
readme = "README.md"
links = "rayforce"

[[bin]]
name = "raysense"
path = "src/main.rs"

[workspace.dependencies]
[dependencies]
anyhow = "1"
axum = "0.7"
clap = { version = "4", features = ["derive"] }
ignore = "0.4"
libloading = "0.8"
Expand All @@ -44,4 +44,16 @@ serde = { version = "1", features = ["derive"] }
serde_json = "1"
sha2 = "0.10"
thiserror = "2"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "time", "signal"] }
tokio-stream = { version = "0.1", features = ["sync"] }
toml = "1.1.2"
tree-sitter = "0.26.8"
tree-sitter-c = "0.24.2"
tree-sitter-cpp = "0.23.4"
tree-sitter-language = "0.1"
tree-sitter-python = "0.25.0"
tree-sitter-rust = "0.24.2"
tree-sitter-typescript = "0.23.2"

[build-dependencies]
cc = "1"
Loading