Skip to content

Commit

Permalink
README console
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdbrock committed Oct 15, 2024
1 parent 07d6e84 commit 799423c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
6 changes: 4 additions & 2 deletions conformance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

From the top directory of this repo,

```
```console
nix run .#conformance
```

Expand All @@ -19,7 +19,9 @@ The derivations in `nix/protobuf.nix` will build `protoc` and the

To generate the conformance `.purs` in the dev environment:

```
```console
protoc --purescript_out=./conformance/generated --proto_path=$(nix path-info .#protobuf)/conformance $(nix path-info .#protobuf)/conformance/conformance.proto
```
```console
protoc --purescript_out=./conformance/generated --proto_path=$(nix path-info .#protobuf)/src $(nix path-info .#protobuf)/src/google/protobuf/test_messages_proto3.proto
```
16 changes: 12 additions & 4 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@
To test purescript-protobuf, run `nix develop` from the top level directory
of the repo, then:

spago -x spago-plugin.dhall build
protoc --purescript_out=./test/generated test/*.proto
spago -x spago-test.dhall test
```console
spago -x spago-plugin.dhall build
```
```console
protoc --purescript_out=./test/generated test/*.proto
```
```console
spago -x spago-test.dhall test
```

# Benchmarks

To run the benchmarks, run `nix develop` from the top level directory, then:

spago -x spago-test.dhall run --main Test.Bench
```console
spago -x spago-test.dhall run --main Test.Bench
```

0 comments on commit 799423c

Please sign in to comment.