MySQL implementation for debil
myuon / debil-mysql Goto Github PK
View Code? Open in Web Editor NEWMySQL implementaion for debil
License: MIT License
MySQL implementaion for debil
License: MIT License
MySQL implementation for debil
runtimeのミスマッチが原因っぽい?
dependencyにtokioを追加して
#[runtime::test]
を
#[tokio::test]
に変更したらテスト通りました
runtime使っててもtokioのrutimeに切り替えられるっぽいのでそっちを試します
error[E0277]: `*mut (dyn std::ops::Fn() + 'static)` cannot be shared between threads safely
--> tests/custom_impl_table.rs:62:5
|
62 | std::thread::spawn(async move || {
| ^^^^^^^^^^^^^^^^^^ `*mut (dyn std::ops::Fn() + 'static)` cannot be shared between threads safely
|
= help: within `core::fmt::Void`, the trait `std::marker::Sync` is not implemented for `*mut (dyn std::ops::Fn() + 'static)`
= note: required because it appears within the type `std::marker::PhantomData<*mut (dyn std::ops::Fn() + 'static)>`
= note: required because it appears within the type `core::fmt::Void`
= note: required because of the requirements on the impl of `std::marker::Send` for `&core::fmt::Void`
= note: required because it appears within the type `std::fmt::ArgumentV1<'_>`
= note: required because it appears within the type `[std::fmt::ArgumentV1<'_>; 2]`
= note: required because it appears within the type `for<'r, 's, 't0, 't1, 't2, 't3, 't4, 't5, 't6, 't7, 't8, 't9, 't10, 't11, 't12, 't13, 't14, 't15, 't16, 't17, 't18, 't19, 't20, 't21, 't22, 't23, 't24, 't25, 't26, 't27, 't28, 't29, 't30, 't31, 't32, 't33, 't34, '$
35, 't36> {&'r mut debil_mysql::conn::DebilConn, std::vec::Vec<(std::string::String, std::string::String, debil::types::FieldAttribute)>, &'s mut debil_mysql::conn::DebilConn, &'t0 mut debil_mysql::conn::DebilConn, for<'t37> fn(std::fmt::Arguments<'t37>) -> std::string:$
String {std::fmt::format}, fn(&'t1 [&'t1 str], &'t1 [std::fmt::ArgumentV1<'t1>]) -> std::fmt::Arguments<'t1> {std::fmt::Arguments::<'t1>::new_v1}, &'t2 str, &'t3 str, [&'t4 str; 3], &'t5 [&'t6 str], &'t7 [&'t8 str; 3], &'t9 [(std::string::String, std::string::String, de$
il::types::FieldAttribute)], std::vec::Vec<(std::string::String, std::string::String, debil::types::FieldAttribute)>, std::slice::Iter<'t10, (std::string::String, std::string::String, debil::types::FieldAttribute)>, [closure@DefId(17:94 ~ debil_mysql[b7be]::conn[0]::{{i$
pl}}[0]::first[0]::{{closure}}[0]::{{closure}}[1])], std::iter::Map<std::slice::Iter<'t13, (std::string::String, std::string::String, debil::types::FieldAttribute)>, [closure@DefId(17:94 ~ debil_mysql[b7be]::conn[0]::{{impl}}[0]::first[0]::{{closure}}[0]::{{closure}}[1]$
]>, &'t16 std::vec::Vec<&'t17 str>, std::vec::Vec<&'t18 str>, &'t19 [&'t20 str], &'t21 [&'t22 str], &'t23 str, &'t24 str, std::string::String, &'t25 std::string::String, fn(std::marker::PhantomData<R>) -> std::string::String {<R as debil::types::SQLTable>::table_name}, $
td::marker::PhantomData<R>, std::string::String, &'t26 std::string::String, (&'t27 std::string::String, &'t28 std::string::String), [std::fmt::ArgumentV1<'t29>; 2], &'t30 [std::fmt::ArgumentV1<'t31>], &'t32 [std::fmt::ArgumentV1<'t33>; 2], std::fmt::Arguments<'t34>, std$
:string::String, mysql_common::params::Params, impl std::future::Future, impl std::future::Future, ()}`
= note: required because it appears within the type `[static generator@DefId(17:73 ~ debil_mysql[b7be]::conn[0]::{{impl}}[0]::first[0]::{{closure}}[0]) 0:&mut debil_mysql::conn::DebilConn for<'r, 's, 't0, 't1, 't2, 't3, 't4, 't5, 't6, 't7, 't8, 't9, 't10, 't11, 't12$
't13, 't14, 't15, 't16, 't17, 't18, 't19, 't20, 't21, 't22, 't23, 't24, 't25, 't26, 't27, 't28, 't29, 't30, 't31, 't32, 't33, 't34, 't35, 't36> {&'r mut debil_mysql::conn::DebilConn, std::vec::Vec<(std::string::String, std::string::String, debil::types::FieldAttribute)$
, &'s mut debil_mysql::conn::DebilConn, &'t0 mut debil_mysql::conn::DebilConn, for<'t37> fn(std::fmt::Arguments<'t37>) -> std::string::String {std::fmt::format}, fn(&'t1 [&'t1 str], &'t1 [std::fmt::ArgumentV1<'t1>]) -> std::fmt::Arguments<'t1> {std::fmt::Arguments::<'t1>
::new_v1}, &'t2 str, &'t3 str, [&'t4 str; 3], &'t5 [&'t6 str], &'t7 [&'t8 str; 3], &'t9 [(std::string::String, std::string::String, debil::types::FieldAttribute)], std::vec::Vec<(std::string::String, std::string::String, debil::types::FieldAttribute)>, std::slice::Iter<'
t10, (std::string::String, std::string::String, debil::types::FieldAttribute)>, [closure@DefId(17:94 ~ debil_mysql[b7be]::conn[0]::{{impl}}[0]::first[0]::{{closure}}[0]::{{closure}}[1])], std::iter::Map<std::slice::Iter<'t13, (std::string::String, std::string::String, de
bil::types::FieldAttribute)>, [closure@DefId(17:94 ~ debil_mysql[b7be]::conn[0]::{{impl}}[0]::first[0]::{{closure}}[0]::{{closure}}[1])]>, &'t16 std::vec::Vec<&'t17 str>, std::vec::Vec<&'t18 str>, &'t19 [&'t20 str], &'t21 [&'t22 str], &'t23 str, &'t24 str, std::string::S
tring, &'t25 std::string::String, fn(std::marker::PhantomData<R>) -> std::string::String {<R as debil::types::SQLTable>::table_name}, std::marker::PhantomData<R>, std::string::String, &'t26 std::string::String, (&'t27 std::string::String, &'t28 std::string::String), [std
::fmt::ArgumentV1<'t29>; 2], &'t30 [std::fmt::ArgumentV1<'t31>], &'t32 [std::fmt::ArgumentV1<'t33>; 2], std::fmt::Arguments<'t34>, std::string::String, mysql_common::params::Params, impl std::future::Future, impl std::future::Future, ()}]`
= note: required because it appears within the type `std::future::GenFuture<[static generator@DefId(17:73 ~ debil_mysql[b7be]::conn[0]::{{impl}}[0]::first[0]::{{closure}}[0]) 0:&mut debil_mysql::conn::DebilConn for<'r, 's, 't0, 't1, 't2, 't3, 't4, 't5, 't6, 't7, 't8,
't9, 't10, 't11, 't12, 't13, 't14, 't15, 't16, 't17, 't18, 't19, 't20, 't21, 't22, 't23, 't24, 't25, 't26, 't27, 't28, 't29, 't30, 't31, 't32, 't33, 't34, 't35, 't36> {&'r mut debil_mysql::conn::DebilConn, std::vec::Vec<(std::string::String, std::string::String, debil::
types::FieldAttribute)>, &'s mut debil_mysql::conn::DebilConn, &'t0 mut debil_mysql::conn::DebilConn, for<'t37> fn(std::fmt::Arguments<'t37>) -> std::string::String {std::fmt::format}, fn(&'t1 [&'t1 str], &'t1 [std::fmt::ArgumentV1<'t1>]) -> std::fmt::Arguments<'t1> {std
::fmt::Arguments::<'t1>::new_v1}, &'t2 str, &'t3 str, [&'t4 str; 3], &'t5 [&'t6 str], &'t7 [&'t8 str; 3], &'t9 [(std::string::String, std::string::String, debil::types::FieldAttribute)], std::vec::Vec<(std::string::String, std::string::String, debil::types::FieldAttribut
e)>, std::slice::Iter<'t10, (std::string::String, std::string::String, debil::types::FieldAttribute)>, [closure@DefId(17:94 ~ debil_mysql[b7be]::conn[0]::{{impl}}[0]::first[0]::{{closure}}[0]::{{closure}}[1])], std::iter::Map<std::slice::Iter<'t13, (std::string::String,
std::string::String, debil::types::FieldAttribute)>, [closure@DefId(17:94 ~ debil_mysql[b7be]::conn[0]::{{impl}}[0]::first[0]::{{closure}}[0]::{{closure}}[1])]>, &'t16 std::vec::Vec<&'t17 str>, std::vec::Vec<&'t18 str>, &'t19 [&'t20 str], &'t21 [&'t22 str], &'t23 str, &'
t24 str, std::string::String, &'t25 std::string::String, fn(std::marker::PhantomData<R>) -> std::string::String {<R as debil::types::SQLTable>::table_name}, std::marker::PhantomData<R>, std::string::String, &'t26 std::string::String, (&'t27 std::string::String, &'t28 std
::string::String), [std::fmt::ArgumentV1<'t29>; 2], &'t30 [std::fmt::ArgumentV1<'t31>], &'t32 [std::fmt::ArgumentV1<'t33>; 2], std::fmt::Arguments<'t34>, std::string::String, mysql_common::params::Params, impl std::future::Future, impl std::future::Future, ()}]>`
= note: required because it appears within the type `impl std::future::Future`
= note: required because it appears within the type `impl std::future::Future`
= note: required because it appears within the type `for<'r, 's, 't0, 't1, 't2, 't3> {&'r mut debil_mysql::conn::DebilConn, debil_mysql::conn::DebilConn, impl std::future::Future, impl std::future::Future, (), &'t1 mut debil_mysql::conn::DebilConn, debil_mysql::conn:
:DebilConn, impl std::future::Future, impl std::future::Future, ()}`
= note: required because it appears within the type `[static generator@tests/custom_impl_table.rs:62:38: 65:6 conn:debil_mysql::conn::DebilConn for<'r, 's, 't0, 't1, 't2, 't3> {&'r mut debil_mysql::conn::DebilConn, debil_mysql::conn::DebilConn, impl std::future::Futu
re, impl std::future::Future, (), &'t1 mut debil_mysql::conn::DebilConn, debil_mysql::conn::DebilConn, impl std::future::Future, impl std::future::Future, ()}]`
= note: required because it appears within the type `std::future::GenFuture<[static generator@tests/custom_impl_table.rs:62:38: 65:6 conn:debil_mysql::conn::DebilConn for<'r, 's, 't0, 't1, 't2, 't3> {&'r mut debil_mysql::conn::DebilConn, debil_mysql::conn::DebilConn,
impl std::future::Future, impl std::future::Future, (), &'t1 mut debil_mysql::conn::DebilConn, debil_mysql::conn::DebilConn, impl std::future::Future, impl std::future::Future, ()}]>`
= note: required because it appears within the type `impl std::future::Future`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.