chore(core): initial commit

This commit is contained in:
Ryan Leckey 2020-12-27 12:31:43 -08:00
parent 8276f88df3
commit 69c4aab9f6
No known key found for this signature in database
GPG Key ID: F8AA68C235AB08C9
4 changed files with 36 additions and 0 deletions

4
Cargo.lock generated
View File

@ -3,3 +3,7 @@
[[package]]
name = "sqlx"
version = "0.6.0-pre"
[[package]]
name = "sqlx-core"
version = "0.6.0-pre"

View File

@ -1,5 +1,6 @@
[workspace]
default-members = ["sqlx"]
members = [
"sqlx-core",
"sqlx",
]

13
sqlx-core/Cargo.toml Normal file
View File

@ -0,0 +1,13 @@
[package]
name = "sqlx-core"
version = "0.6.0-pre"
repository = "https://github.com/launchbadge/sqlx"
description = "Core of SQLx, the Rust SQL Toolkit."
license = "MIT OR Apache-2.0"
edition = "2018"
readme = "README.md"
keywords = [ ]
categories = [ ]
authors = [
"LaunchBadge <contact@launchbadge.com>"
]

18
sqlx-core/src/lib.rs Normal file
View File

@ -0,0 +1,18 @@
//! SQLx Core (`sqlx-core`) is the core set of traits and types that are used and implemented for each
//! database driver (`sqlx-postgres`, `sqlx-mysql`, etc.).
//!
#![deny(unsafe_code)]
#![warn(rust_2018_idioms)]
#![warn(future_incompatible)]
#![warn(clippy::pedantic)]
#![warn(clippy::cargo_common_metadata)]
#![warn(clippy::multiple_crate_versions)]
#![warn(clippy::cognitive_complexity)]
#![warn(clippy::future_not_send)]
#![warn(clippy::missing_const_for_fn)]
#![warn(clippy::needless_borrow)]
#![warn(clippy::redundant_pub_crate)]
#![warn(clippy::string_lit_as_bytes)]
#![warn(clippy::use_self)]
#![warn(clippy::useless_let_if_seq)]
#![allow(clippy::clippy::doc_markdown)]