moving song related stuff to it's own mod
Gonna try to organize pieces better, so this is step one.
This commit is contained in:
parent
a21190e58b
commit
0d2de5e252
6 changed files with 8 additions and 5 deletions
2
build.rs
2
build.rs
|
@ -11,7 +11,7 @@ fn main() {
|
||||||
.file("src/rust/image_model.rs")
|
.file("src/rust/image_model.rs")
|
||||||
.file("src/rust/video_model.rs")
|
.file("src/rust/video_model.rs")
|
||||||
.file("src/rust/presentation_model.rs")
|
.file("src/rust/presentation_model.rs")
|
||||||
.file("src/rust/song_model.rs")
|
.file("src/rust/songs/song_model.rs")
|
||||||
.file("src/rust/ytdl.rs")
|
.file("src/rust/ytdl.rs")
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,8 @@ mod service_thing;
|
||||||
pub mod settings;
|
pub mod settings;
|
||||||
pub mod slide_model;
|
pub mod slide_model;
|
||||||
mod slide_obj;
|
mod slide_obj;
|
||||||
pub mod song_model;
|
pub mod songs;
|
||||||
pub mod video_model;
|
pub mod video_model;
|
||||||
pub mod ytdl;
|
pub mod ytdl;
|
||||||
|
pub mod utils;
|
||||||
// mod video_thumbnail;
|
// mod video_thumbnail;
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
|
|
2
src/rust/songs/mod.rs
Normal file
2
src/rust/songs/mod.rs
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
pub mod song_editor;
|
||||||
|
pub mod song_model;
|
1
src/rust/songs/song_editor.rs
Normal file
1
src/rust/songs/song_editor.rs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
mod song_editor;
|
|
@ -1,8 +1,8 @@
|
||||||
#[cxx_qt::bridge]
|
#[cxx_qt::bridge]
|
||||||
mod song_model {
|
pub mod song_model {
|
||||||
use crate::models::*;
|
use crate::models::*;
|
||||||
use crate::schema::songs::dsl::*;
|
use crate::schema::songs::dsl::*;
|
||||||
use crate::song_model::song_model::Song;
|
use crate::songs::song_model::song_model::Song;
|
||||||
use diesel::sqlite::SqliteConnection;
|
use diesel::sqlite::SqliteConnection;
|
||||||
use diesel::{delete, insert_into, prelude::*, update};
|
use diesel::{delete, insert_into, prelude::*, update};
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
Loading…
Add table
Add a link
Reference in a new issue