add excludes to package

This commit is contained in:
Manuel Gugger 2022-09-02 17:37:13 +02:00
parent 01d7244cc1
commit 226d7d0d53
3 changed files with 11 additions and 24 deletions

View File

@ -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"

View File

@ -2,6 +2,9 @@
name = "actix_admin_macros"
version = "0.1.0"
edition = "2021"
exclude = [
"tests/*"
]
[lib]
proc-macro = true

View File

@ -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);
}