Compare commits

..

No commits in common. "04b6904400f13f1aa85fa4627f887530e75a09cb" and "9cc0a965cbedda5d88efea92c57c8f05bc8ae43a" have entirely different histories.

6 changed files with 0 additions and 86 deletions

View file

@ -1,20 +0,0 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Clippy" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
<option name="buildProfileId" value="dev" />
<option name="command" value="clippy" />
<option name="workingDirectory" value="file://$PROJECT_DIR$" />
<envs />
<option name="emulateTerminal" value="true" />
<option name="channel" value="DEFAULT" />
<option name="requiredFeatures" value="true" />
<option name="allFeatures" value="false" />
<option name="withSudo" value="false" />
<option name="buildTarget" value="REMOTE" />
<option name="backtrace" value="SHORT" />
<option name="isRedirectInput" value="false" />
<option name="redirectInputPath" value="" />
<method v="2">
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
</method>
</configuration>
</component>

View file

@ -1,22 +0,0 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
<option name="buildProfileId" value="dev" />
<option name="command" value="test" />
<option name="workingDirectory" value="file://$PROJECT_DIR$" />
<envs>
<env name="ACRATE_DATABASE_URL" value="postgres:///acrate?host=/run/postgresql/" />
</envs>
<option name="emulateTerminal" value="true" />
<option name="channel" value="DEFAULT" />
<option name="requiredFeatures" value="true" />
<option name="allFeatures" value="true" />
<option name="withSudo" value="false" />
<option name="buildTarget" value="REMOTE" />
<option name="backtrace" value="SHORT" />
<option name="isRedirectInput" value="false" />
<option name="redirectInputPath" value="" />
<method v="2">
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
</method>
</configuration>
</component>

View file

@ -1,22 +0,0 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test ignored" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
<option name="buildProfileId" value="dev" />
<option name="command" value="test -- --ignored" />
<option name="workingDirectory" value="file://$PROJECT_DIR$" />
<envs>
<env name="ACRATE_DATABASE_URL" value="postgres:///acrate?host=/run/postgresql/" />
</envs>
<option name="emulateTerminal" value="true" />
<option name="channel" value="DEFAULT" />
<option name="requiredFeatures" value="true" />
<option name="allFeatures" value="true" />
<option name="withSudo" value="false" />
<option name="buildTarget" value="REMOTE" />
<option name="backtrace" value="SHORT" />
<option name="isRedirectInput" value="false" />
<option name="redirectInputPath" value="" />
<method v="2">
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
</method>
</configuration>
</component>

View file

@ -27,8 +27,3 @@ Federation database
### Binaries
- `acrate_rdserver`: Resource descriptor web server
### Extra
- `acrate_docker`: Utilities for deploying the acrate stack on Docker

View file

@ -19,13 +19,11 @@ micronfig = { version = "0.3.0", optional = true }
mime = "0.3.17"
pretty_env_logger = { version = "0.5.0", optional = true }
uuid = "1.11.0"
tokio = { version = "1.42.0", optional = true }
[features]
default = ["connect"]
bin = ["diesel_migrations", "pretty_env_logger", "connect"]
connect = ["micronfig"]
tests = ["tokio", "connect"]
[lib]
name = "acrate_database"

View file

@ -1,15 +0,0 @@
use acrate_database::connect::{connect_async, connect_sync};
#[test]
#[ignore]
fn test_connect_sync() -> diesel::ConnectionResult<()> {
connect_sync()?;
Ok(())
}
#[tokio::test]
#[ignore]
async fn test_connect_async() -> diesel::ConnectionResult<()> {
connect_async().await?;
Ok(())
}