1
1
mirror of https://github.com/tweag/nickel.git synced 2024-09-21 00:19:57 +03:00
Commit Graph

12 Commits

Author SHA1 Message Date
Jeremy Parker
aa4bb20b3e
Add linker directive for *-darwin to fix PyO3 (#1454)
* Add linker directive for *-darwin to fix PyO3

Without these flags I get linking errors like this when building from
nixpkgs:

  = note: Undefined symbols for architecture arm64:
            "_PyExc_ConnectionResetError", referenced from:
                pyo3::type_object::PyTypeInfo::type_object::hd73bc9c256c52717 in libpyo3-c59aeb8b74bb57e0.rlib(pyo3-c59aeb8b74bb57e0.pyo3.e60578ba-cgu.0.rcgu.o)

See: https://pyo3.rs/main/building_and_distribution#macos

* Move from cargo `config.toml` options to a build script for pyckel

* Use the same revision of tree-sitter-nickel as topiary does

---------

Co-authored-by: Viktor Kleen <viktor.kleen@tweag.io>
2023-07-31 16:16:42 +00:00
Viktor Kleen
78e7a8814b
Rename and move workspace crates (#1399)
* Rename and move workspace crates

nickel-lang -> nickel-lang-cli in cli/
nickel-lang-lib -> nickel-lang-core in core/
nickel-lang-utilities -> nickel-lang-utils in utils/
nickel-repl -> nickel-repl in wasm-repl/

* Finish renaming in rust sources

* Update RELEASING.md

* Move to workspace dependencies

* Rename nickel-repl -> nickel-wasm-repl

* Update RELEASING.md

Co-authored-by: Taeer Bar-Yam <Radvendii@users.noreply.github.com>

* Address suggestions from code review

* Update HACKING.md

Co-authored-by: Yann Hamdaoui <yann.hamdaoui@tweag.io>

* Elaborate on the versioning scheme in RELEASING.md

---------

Co-authored-by: Taeer Bar-Yam <Radvendii@users.noreply.github.com>
Co-authored-by: Yann Hamdaoui <yann.hamdaoui@tweag.io>
2023-06-26 16:58:40 +00:00
Viktor Kleen
3e03cc7909
Move the CLI into its own crate (#1351)
* Fetch the wasm-bindgen-cli version from Cargo.lock instead of Cargo.toml

* Move the Nickel CLI to a separate crate

* Fix snapshot tests

* Rename the nickel flake output to nickel-lang-cli for consistency

* Move the nickel-lang crate into a subdirectory

* Update documentation for the new crate split

* Tweak snapshot test instructions

* Use project_root instead of ad-hoc environment variables

* Remove the library from nickel-lang-cli for now

* Rename nickel-lang to nickel-lang-lib and nickel-lang-cli to nickel-lang

* Apply suggestions from code review

Co-authored-by: Yann Hamdaoui <yann.hamdaoui@tweag.io>

* Tweak documentation for nickel_lang_utilities::project_root

* Use MacOS 13 github runner because of https://github.com/cachix/install-nix-action/issues/183

---------

Co-authored-by: Yann Hamdaoui <yann.hamdaoui@tweag.io>
2023-06-16 16:34:13 +00:00
jneem
dc6804acd1
Adds a configurable tracing output instead of hardcoding stderr (#1338)
* Make the trace destination configurable

* Add a callback-oriented trace collector to the wasm repl

* Only call back on flush

* Fix clippy

* Silence trace output in pyckel.

This probably isn't the best thing, but it's probably still better than
polluting stderr in a library. Possibly a better solution is to
imitate the api of `subprocess.run`, but that requires breaking API
to return something other than a plain string.
2023-06-07 14:17:13 +00:00
Yann Hamdaoui
c4da6975b3
Bump version to 1.0 (#1302)
* Bump version number to 1.0

* Add text for 1.0 release
2023-05-17 12:50:43 +00:00
Viktor Kleen
920ab4008c Make clippy run on the entire workspace in CI 2023-02-28 16:55:55 +00:00
Daniele
8af5af54ce
Feature/incremental cache (#1066)
added `IncCache`
2023-02-23 17:41:36 +01:00
Guillaume Desforges
f6b489229f update docstring 2023-01-18 22:48:01 +01:00
Guillaume Desforges
54e7cad356 apply review to pyckel/src/lib.rs 2023-01-18 22:45:02 +01:00
Guillaume Desforges
bdb9afc599 pyckel: diagnostics in exception 2023-01-18 18:49:05 +01:00
Guillaume Desforges
572d8328b3 Update pyckel/README.md 2023-01-16 16:38:24 +01:00
Guillaume Desforges
768656d75a Move Python bindings to its own crate pyckel 2023-01-16 16:38:24 +01:00