pub struct ProjectConfig {
Show 27 fields pub output_name: String, pub site_addr: SocketAddr, pub site_root: Utf8PathBuf, pub site_pkg_dir: Utf8PathBuf, pub style_file: Option<Utf8PathBuf>, pub tailwind_input_file: Option<Utf8PathBuf>, pub tailwind_config_file: Option<Utf8PathBuf>, pub assets_dir: Option<Utf8PathBuf>, pub js_dir: Option<Utf8PathBuf>, pub reload_port: u16, pub end2end_cmd: Option<String>, pub end2end_dir: Option<Utf8PathBuf>, pub browser_query: String, pub bin_target: String, pub bin_target_triple: Option<String>, pub bin_target_dir: Option<String>, pub bin_cargo_command: Option<String>, pub features: Vec<String>, pub lib_features: Vec<String>, pub lib_default_features: bool, pub bin_features: Vec<String>, pub bin_default_features: bool, pub config_dir: Utf8PathBuf, pub lib_profile_dev: Option<String>, pub lib_profile_release: Option<String>, pub bin_profile_dev: Option<String>, pub bin_profile_release: Option<String>,
}

Fields§

§output_name: String§site_addr: SocketAddr§site_root: Utf8PathBuf§site_pkg_dir: Utf8PathBuf§style_file: Option<Utf8PathBuf>§tailwind_input_file: Option<Utf8PathBuf>§tailwind_config_file: Option<Utf8PathBuf>§assets_dir: Option<Utf8PathBuf>

assets dir. content will be copied to the target/site dir

§js_dir: Option<Utf8PathBuf>

js dir. changes triggers rebuilds.

§reload_port: u16§end2end_cmd: Option<String>

command for launching end-2-end integration tests

§end2end_dir: Option<Utf8PathBuf>

the dir used when launching end-2-end integration tests

§browser_query: String§bin_target: String

the bin target to use for building the server

§bin_target_triple: Option<String>

the bin output target triple to use for building the server

§bin_target_dir: Option<String>

the directory to put the generated server artifacts

§bin_cargo_command: Option<String>

the command to run instead of “cargo” when building the server

§features: Vec<String>§lib_features: Vec<String>§lib_default_features: bool§bin_features: Vec<String>§bin_default_features: bool§config_dir: Utf8PathBuf§lib_profile_dev: Option<String>§lib_profile_release: Option<String>§bin_profile_dev: Option<String>§bin_profile_release: Option<String>

Trait Implementations§

source§

impl Debug for ProjectConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ProjectConfig

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

§

fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Pointee for T

§

type Metadata = ()

The type for metadata in pointers and references to Self.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,