Improve release experience by bundling sqlite and fixing warnings

This commit is contained in:
NGnius (Graham) 2022-01-25 22:14:48 -05:00
parent f88efaf6d5
commit 44cee21e7e
4 changed files with 6 additions and 2 deletions

1
Cargo.lock generated
View file

@ -886,6 +886,7 @@ version = "0.23.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2cafc7c74096c336d9d27145f7ebd4f4b6f95ba16aa5a282387267e6925cb58" checksum = "d2cafc7c74096c336d9d27145f7ebd4f4b6f95ba16aa5a282387267e6925cb58"
dependencies = [ dependencies = [
"cc",
"pkg-config", "pkg-config",
"vcpkg", "vcpkg",
] ]

View file

@ -6,7 +6,7 @@ license = "LGPL-2.1-only OR GPL-2.0-or-later"
readme = "README.md" readme = "README.md"
[dependencies] [dependencies]
rusqlite = { version = "0.26.3" } rusqlite = { version = "0.26.3", features = ["bundled"] }
symphonia = { version = "0.4.0", optional = true, features = [ symphonia = { version = "0.4.0", optional = true, features = [
"aac", "flac", "mp3", "pcm", "vorbis", "isomp4", "ogg", "wav" "aac", "flac", "mp3", "pcm", "vorbis", "isomp4", "ogg", "wav"
] } ] }

View file

@ -2,7 +2,9 @@ use std::collections::VecDeque;
//use std::fmt::{Debug, Display, Error, Formatter}; //use std::fmt::{Debug, Display, Error, Formatter};
use std::marker::PhantomData; use std::marker::PhantomData;
use crate::lang::utility::{assert_empty, assert_token, assert_token_raw, assert_token_raw_back}; use crate::lang::utility::{assert_token, assert_token_raw, assert_token_raw_back};
#[cfg(debug_assertions)]
use crate::lang::utility::assert_empty;
use crate::lang::MpsLanguageDictionary; use crate::lang::MpsLanguageDictionary;
use crate::lang::SyntaxError; use crate::lang::SyntaxError;
use crate::lang::{BoxedMpsOpFactory, MpsOp}; use crate::lang::{BoxedMpsOpFactory, MpsOp};

View file

@ -169,6 +169,7 @@ pub fn assert_type(tokens: &mut VecDeque<MpsToken>) -> Result<MpsTypePrimitive,
} }
} }
#[cfg(debug_assertions)]
pub fn assert_empty(tokens: &mut VecDeque<MpsToken>) -> Result<(), SyntaxError> { pub fn assert_empty(tokens: &mut VecDeque<MpsToken>) -> Result<(), SyntaxError> {
match tokens.pop_front() { match tokens.pop_front() {
None => Ok(()), None => Ok(()),