Skip to content

Commit

Permalink
fix: crates.io won't do
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed Jul 26, 2024
1 parent 8427e50 commit c1640b7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 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.

7 changes: 2 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[package]
name = "nerve-ai"
publish = false
name = "nerve"
version = "0.2.0"
description = "Nerve is a tool that allows creating stateful agents with any LLM of your choice - without writing a single line of code. The tool provides to the model a framework of functionalities for planning, saving or recalling memories, etc by dynamically adapting the prompt and making it stateful over multiple inferences. The model will be able to access and use these functionalities in order to accomplish the task you provided."
edition = "2021"
Expand All @@ -10,10 +11,6 @@ readme = "README.md"
repository = "https://github.com/evilsocket/nerve"
homepage = "https://github.com/evilsocket/nerve"

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

[dependencies]
ollama-rs = { path = "./crates/ollama-rs", features = [
"rustls",
Expand Down
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
</p>

<p align="center">
<a href="https://crates.io/crates/nerve-ai"><img alt="Crate" src="https://img.shields.io/crates/v/nerve-ai.svg"></a>
<a href="https://github.com/evilsocket/nerve/releases/latest"><img alt="Release" src="https://img.shields.io/github/release/evilsocket/nerve.svg?style=flat-square"></a>
<a href="https://hub.docker.com/r/evilsocket/nerve"><img alt="Docker Hub" src="https://img.shields.io/docker/v/evilsocket/nerve?logo=docker"></a>
<a href="https://rust-reportcard.xuri.me/report/github.com/evilsocket/nerve"><img alt="Rust Report" src="https://rust-reportcard.xuri.me/badge/github.com/evilsocket/nerve"></a>
Expand Down Expand Up @@ -156,15 +155,9 @@ nerve -G ... -T whatever-tasklet --save-to state.txt

The agent save to disk its internal state at each iteration for you to observe.

## Installing from Crates.io
## About Crates.io

Nerve is published as a binary crate on [crates.io](https://crates.io/crates/nerve-ai), if you have [Cargo installed](https://rustup.rs/) you can:

```sh
cargo install nerve-ai
```

This will compile its sources and install the binary in `$HOME/.cargo/bin/nerve`.
Since v0.2.0 **Nerve is not on crates.io anymore** due to the [lack of support of local crates](https://users.rust-lang.org/t/is-it-possible-to-publish-crates-with-path-specified/91497).

## Installing from DockerHub

Expand Down
4 changes: 2 additions & 2 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
print("git tag -a v%s -m 'releasing v%s'" % (next_ver, next_ver))
print("git push origin v%s" % next_ver)

print()
# print()
# publish on crates.io
print("cargo publish")
# print("cargo publish")

0 comments on commit c1640b7

Please sign in to comment.