Skip to content

Commit

Permalink
refactor(rockspec): move rocks.rockspec to its own module
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Jan 30, 2024
1 parent fdf21ed commit 0de5fdf
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
1 change: 1 addition & 0 deletions rocks-lib/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod config;
pub mod manifest;
pub mod rocks;
pub mod rockspec;
8 changes: 0 additions & 8 deletions rocks-lib/src/rocks/mod.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
mod dependency;
mod download;
mod platform;
mod rock_source;
mod rockspec;
mod unpack;

pub use dependency::*;
pub use download::*;
pub use platform::*;
pub use rock_source::*;
pub use rockspec::*;
pub use unpack::*;
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
mod dependency;
mod platform;
mod rock_source;

use std::collections::HashMap;

use eyre::{eyre, Result};
use mlua::{Lua, LuaSerdeExt, Value};
use serde::{de::DeserializeOwned, Deserialize};

use crate::rocks::PlatformSupport;

use super::*;
pub use dependency::*;
pub use platform::*;
pub use rock_source::*;

#[derive(Debug)]
pub struct Rockspec {
Expand Down Expand Up @@ -85,7 +89,7 @@ where
#[cfg(test)]
mod tests {

use crate::rocks::{LuaRock, PlatformIdentifier};
use crate::rockspec::{LuaRock, PlatformIdentifier};

use super::*;

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 0de5fdf

Please sign in to comment.