forked from CeleritasCelery/rune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create initial rune-core crate with only hashmap
This is the first step towards migrating the core out of the rune to a different crate: rune-core. The idea with separating the PRs that I do for this refactoring is to make the whole process easier to review + making sure there are no regressions on the refactors we do. I started moving hashmap, which is typing that is used both in rune-core and the main crate, hence why moved to rune-core. I'll move other modules to rune-core little by little, as we get closer with PRs.
- Loading branch information
Showing
15 changed files
with
84 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[package] | ||
name = "rune-core" | ||
version = "0.1.0" | ||
description = "Core functionality of the Rune Emacs Runtime." | ||
edition.workspace = true | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
anyhow = { workspace = true } | ||
bstr = { workspace = true } | ||
sptr = { workspace = true } | ||
fallible-iterator = { workspace = true } | ||
fallible-streaming-iterator = { workspace = true } | ||
float-cmp = { workspace = true } | ||
fxhash = { workspace = true } | ||
indexmap = { workspace = true } | ||
memoffset = { workspace = true } | ||
|
||
rune-macros = { workspace = true } | ||
text-buffer = { workspace = true } | ||
|
||
[lints] | ||
workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//! Hashmap types used in the crate. | ||
use fxhash::FxBuildHasher; | ||
|
||
pub type HashMap<K, V> = std::collections::HashMap<K, V, FxBuildHasher>; | ||
pub type HashSet<K> = std::collections::HashSet<K, FxBuildHasher>; | ||
pub type IndexMap<K, V> = indexmap::IndexMap<K, V, FxBuildHasher>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//! Core functionality of the Rune Runtime. | ||
pub mod hashmap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,6 @@ mod fileio; | |
mod floatfns; | ||
mod fns; | ||
mod gui; | ||
mod hashmap; | ||
mod interpreter; | ||
mod keymap; | ||
mod lread; | ||
|
26408cf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://qkessler-rune-rs.netlify.app as production
🚀 Deployed on https://657eb59a58f3e64ba995c17b--qkessler-rune-rs.netlify.app