mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
test flowy-user with protobuf serde
This commit is contained in:
@ -1,10 +1,9 @@
|
||||
use crate::proto::ast::*;
|
||||
use crate::proto::helper::*;
|
||||
use crate::{proto::template::*, util::*};
|
||||
use flowy_ast::*;
|
||||
use shell::*;
|
||||
|
||||
use std::{fs::OpenOptions, io::Write};
|
||||
use syn::Item;
|
||||
|
||||
use walkdir::WalkDir;
|
||||
|
||||
pub struct ProtoGen {
|
||||
|
@ -2,7 +2,7 @@ use crate::proto::helper::{CrateProtoInfo, FileProtoInfo};
|
||||
use crate::util::{get_tera, read_file};
|
||||
use std::fs::OpenOptions;
|
||||
use std::io::Write;
|
||||
use tera::{Context, Tera};
|
||||
use tera::Context;
|
||||
|
||||
pub struct ProtobufDeriveMeta {
|
||||
context: Context,
|
||||
|
@ -1,6 +1,6 @@
|
||||
use crate::proto::ast::FlowyEnum;
|
||||
use crate::util::get_tera;
|
||||
use tera::{Context, Tera};
|
||||
use tera::Context;
|
||||
|
||||
pub struct EnumTemplate {
|
||||
context: Context,
|
||||
|
@ -1,7 +1,7 @@
|
||||
use crate::util::get_tera;
|
||||
use flowy_ast::*;
|
||||
use phf::phf_map;
|
||||
use tera::{Context, Tera};
|
||||
use tera::Context;
|
||||
|
||||
// Protobuf data type : https://developers.google.com/protocol-buffers/docs/proto3
|
||||
static RUST_TYPE_MAP: phf::Map<&'static str, &'static str> = phf_map! {
|
||||
|
Reference in New Issue
Block a user