Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(lib/rockspec): move rocks::rockspec to its own module #7

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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::*;
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.