| Crates.io | swamp-core |
| lib.rs | swamp-core |
| version | 0.2.26 |
| created_at | 2025-03-29 15:52:38.946928+00 |
| updated_at | 2025-08-18 11:24:00.899089+00 |
| description | Initializes the Swamp core library module, defining primitive type aliases and registering intrinsic functions. |
| homepage | |
| repository | https://github.com/swamp/swamp |
| max_upload_size | |
| id | 1611413 |
| size | 51,767 |
Initializes the foundational "core" module for the Swamp programming language.
This crate is responsible for creating the initial swamp_modules::Module that represents the built-in core library available to all Swamp programs. It populates this module's symbol table with essential definitions required by the language and runtime.
Int, Float, String, and Bool that map to the underlying primitive types (swamp_types::Type).swamp-core-extra) rather than being written in Swamp code. This includes functions for:
Int.abs, Float.sqrt, etc.)String.len, etc.)Vec.push, Map.get, Grid.set, etc.)Slice and SlicePair.create_module function which takes a version and returns the fully populated core Module.This crate is primarily a dependency for the Swamp compiler or tools that need to bootstrap the core environment.
[dependencies]
swamp-core = "0.2.26"
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/swamp/swamp