Skip to content

Move the stdlib to the top level#2

Merged
ilitteri merged 1 commit intomasterfrom
level_up_stdlib
Nov 7, 2022
Merged

Move the stdlib to the top level#2
ilitteri merged 1 commit intomasterfrom
level_up_stdlib

Conversation

@ilitteri
Copy link
Collaborator

@ilitteri ilitteri commented Nov 7, 2022

Related issue(s)

Already linked in the PR for noir)

Description

Summary of changes

This PR moves the stdlib to the top level as discussed with the Noir's team.

Dependency additions / changes

N/A

Test additions / changes

N/A

Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt with default settings.
  • I have linked this PR to the issue(s) that it resolves.
  • I have reviewed the changes on GitHub, line by line.
  • I have ensured all changes are covered in the description.

Additional context

This was the easiest thing to do but let me know if the idea for the stdlib is to stay as an independent Rust crate and I'll make sure it is.

@ilitteri ilitteri self-assigned this Nov 7, 2022
@ilitteri ilitteri merged commit f068b07 into master Nov 7, 2022
@ilitteri ilitteri deleted the level_up_stdlib branch November 7, 2022 17:47
ilitteri added a commit that referenced this pull request Dec 20, 2022
* Refactor stdlib into a separate noir library (#1)

* Remove std_lib package

* Update path_to_stdlib

Given that now the stdlib is a standalone nargo crate

* Copy stdlib nargo crate to the native config dir

* Move stdlib to the package manager level

As a standalone nargo crate

* Add build.rs dependencies

* Return aztec_backend dependency back to its origin commit as it was modified accidentally.

* Abstract driver module from the stdlib addition

Now the stdlib addition is a responsibility for nargo.

Note: It needs to add it before invoking into_compiled_program in order for the resolver to find the stdlib as a dependency of the crate.

* cargo fmt

* Change needless pass value

This argument was passed by value, but not consumed in the function body

* Update file_compiles for tests

* Move tests to the package manager level as well

* Add tests for the build cmd

To ensure that the changes made work as expected

* cargo fmt

* Move the stdlib to the top level (#2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant