Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: export types mistakenly left private #27

Merged
merged 19 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
toolchain: [nightly, 0.37.0]
toolchain: [nightly, 1.0.0-beta.1]
kashbrti marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion Nargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "json_parser"
type = "lib"
authors = [""]
compiler_version = ">=0.37.0"
kashbrti marked this conversation as resolved.
Show resolved Hide resolved
compiler_version = "1.0.0"

[dependencies]
noir_sort = {tag = "v0.2.0", git = "https://github.com/noir-lang/noir_sort"}
2 changes: 1 addition & 1 deletion src/getters.nr
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::transcript_entry::TranscriptEntry;
/**
* @brief records data used to reason about whether a key exists in a json blob
**/
struct KeySearchResult {
pub struct KeySearchResult {
found: bool, // does the key exist?
target_lt_smallest_entry: bool, // is the target keyhash smaller than the smallest keyhash in self.key_hashes?
target_gt_largest_entry: bool, // is the target keyhash larger than the largest keyhash in self.key_hashes?
Expand Down
2 changes: 1 addition & 1 deletion src/json.nr
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl<let MaxLength: u32> JSONValue<MaxLength> {
* @description The "root" of the JSON refers to the parent object or array (or a value if the json is just a single value e.g. text = "\"foo\": \"bar\"")
* @note text that describes just a single JSON value is not yet fully supported. Only use this library for processing objects or arrays for now
**/
struct JSON<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let MaxNumValues: u32, let MaxKeyFields: u32> {
pub struct JSON<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let MaxNumValues: u32, let MaxKeyFields: u32> {
json: [u8; NumBytes], // the raw json bytes
json_packed: [Field; NumPackedFields], // raw bytes, but packed into 31-byte Field elements
raw_transcript: [Field; MaxNumTokens], // transcript of json tokens after basic processing
Expand Down
Loading