add excludes to package
This commit is contained in:
parent
01d7244cc1
commit
226d7d0d53
@ -2,6 +2,14 @@
|
||||
name = "actix_admin"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
exclude = [
|
||||
"example/*",
|
||||
"actix_admin_macros/*",
|
||||
"tests/*",
|
||||
"README.md",
|
||||
"static/*",
|
||||
"azure_auth/*",
|
||||
]
|
||||
|
||||
[dependencies]
|
||||
actix-web = "4.0.1"
|
||||
|
@ -2,6 +2,9 @@
|
||||
name = "actix_admin_macros"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
exclude = [
|
||||
"tests/*"
|
||||
]
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
@ -1,24 +0,0 @@
|
||||
use sea_orm::entity::prelude::*;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use actix_admin_macros::ActixAdmin;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Deserialize, Serialize, ActixAdmin)]
|
||||
#[sea_orm(table_name = "test")]
|
||||
pub struct Model {
|
||||
#[sea_orm(primary_key)]
|
||||
#[serde(skip_deserializing)]
|
||||
pub id: i32,
|
||||
pub title: String,
|
||||
#[sea_orm(column_type = "Text")]
|
||||
pub text: String,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
pub enum Relation {}
|
||||
|
||||
impl ActiveModelBehavior for ActiveModel {}
|
||||
|
||||
#[test]
|
||||
fn test_macro() {
|
||||
assert_eq!(4, 2);
|
||||
}
|
Loading…
Reference in New Issue
Block a user