profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/dlight/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Elias Gabriel Amaral da Silva dlight Natal, Brazil

dlight/p-macro 13

p!() is a macro used for printing values while debugging

dlight/draw 4

Drawing fractals (and perhaps other things too)

dlight/awesome-rust-forums 1

Curated list of Rust forums

dlight/backlash 1

Backlash is a shell experiment

dlight/couchdb-guide 1

CouchDB: The Definitive Guide

dlight/dotemacs 1

my .emacs.d

dlight/escalonador 1

Pequeno trabalho de SO

dlight/git-svn-clone-externals 1

Simple shell script to import svn:externals into a local git-svn repository

dlight/hydra-mud 1

A mud implemented with tcpserver

startedobsidiansystems/obelisk

started time in a day

startedsolidsnack/pg-sql-variants

started time in 2 days

pull request commentnannou-org/nannou

Update daggy to 0.7

@mitchmindtree done!

dlight

comment created time in 3 days

push eventdlight/nannou

Elias Gabriel Amaral da Silva

commit sha c65e87d258fc9a07aef5b3809d746e363341fc36

Remove daggy (unused dependency)

view details

push time in 3 days

startedkenmcmil/ivy

started time in 5 days

startedfangyi-zhou/graphviz-dot-parser

started time in 6 days

startedstandard-ai/caring

started time in 7 days

issue commentfaokunega/pg-embed

Example in readme doesn't compile

Thanks!

dlight

comment created time in 15 days

issue openedfaokunega/pg-embed

Example in readme doesn't compile

After wrapping the code on fn main() { }, here it fails compilation with:

<details> <summary>Compiler error</summary>

error[E0432]: unresolved import `pg_embed::fetch`
 --> src/main.rs:2:5
  |
2 | use pg_embed::fetch;
  |     ^^^^^^^^^^^^^^^ no `fetch` in the root

error[E0432]: unresolved import `pg_embed::fetch`
 --> src/main.rs:3:15
  |
3 | use pg_embed::fetch::{PgFetchSettings, PG_V13};
  |               ^^^^^ could not find `fetch` in `pg_embed`

error[E0425]: cannot find value `pg` in this scope
  --> src/main.rs:69:25
   |
69 |     let pg_uri: &str = &pg.db_uri;
   |                         ^^ not found in this scope

error[E0425]: cannot find value `pg` in this scope
  --> src/main.rs:73:29
   |
73 |     let pg_db_uri: String = pg.full_db_uri("database_name");
   |                             ^^ not found in this scope

error[E0603]: enum `PgAuthMethod` is private
  --> src/main.rs:1:47
   |
1  | use pg_embed::postgres::{PgEmbed, PgSettings, PgAuthMethod};
   |                                               ^^^^^^^^^^^^ private enum
   |
note: the enum `PgAuthMethod` is defined here
  --> /home/me/.cargo/registry/src/github.com-1ecc6299db9ec823/pg-embed-0.6.1/src/postgres.rs:27:23
   |
27 | use crate::pg_enums::{PgAuthMethod, PgServerStatus};
   |                       ^^^^^^^^^^^^

warning: unused doc comment
  --> src/main.rs:9:1
   |
9  |   /// Postgresql settings
   |   ^^^^^^^^^^^^^^^^^^^^^^^
10 | / let pg_settings = PgSettings{
11 | |     // Where to store the postgresql database
12 | |     database_dir: PathBuf::from("data/db"),
13 | |     port: 5432,
...  |
27 | |     migration_dir: None,
28 | | };
   | |__- rustdoc does not generate documentation for statements
   |
   = note: `#[warn(unused_doc_comments)]` on by default

warning: unused doc comment
  --> src/main.rs:30:1
   |
30 |   /// Postgresql binaries download settings
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 | / let fetch_settings = PgFetchSettings{
32 | |        version: PG_V13,
33 | |        ..Default::default()
34 | | };
   | |__- rustdoc does not generate documentation for statements

warning: unused doc comment
  --> src/main.rs:37:1
   |
37 |   /// async block only to show that these methods need to be executed in an async context
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38 | / async { 
39 | |     // Create a new instance
40 | |     let mut pg = PgEmbed::new(pg_settings, fetch_settings).await?;
41 | |
...  |
65 | |     pg.stop_db().await;
66 | | };
   | |_- rustdoc does not generate documentation for expressions

error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `FromResidual`)
  --> src/main.rs:40:65
   |
38 |   async { 
   |  _______-
39 | |     // Create a new instance
40 | |     let mut pg = PgEmbed::new(pg_settings, fetch_settings).await?;
   | |                                                                 ^ cannot use the `?` operator in an async block that returns `()`
41 | |
...  |
65 | |     pg.stop_db().await;
66 | | };
   | |_- this function should return `Result` or `Option` to accept `?`
   |
   = help: the trait `FromResidual<Result<Infallible, PgEmbedError>>` is not implemented for `()`
   = note: required by `from_residual`

error: aborting due to 6 previous errors; 3 warnings emitted

Some errors have detailed explanations: E0425, E0432, E0603.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `pgexample`

</details>

The ? error isn't too important (I guess I could just do fn main() -> Result<..> { }, but the unresolved import errors seem to indicate the code example is for another version of pg-embed.

Are there other examples? Or some repository on Github that use pg-embed to do something.

created time in 15 days

startedgluesql/gluesql

started time in 15 days

startedantonmarsden/toodee

started time in 22 days

pull request commentnannou-org/nannou

Update daggy to 0.7

Another option is to simply not depend on daggy anymore, and let people depend on it themselves. That way people can depend on the latest version of the crate without needing a new nannou release.

dlight

comment created time in 22 days

PR opened nannou-org/nannou

Update daggy to 0.7

Since daggy isn't used anywhere in the crate, this just bumps the version number in nannou/Cargo.toml.

+1 -1

0 comment

1 changed file

pr created time in 23 days

create barnchdlight/nannou

branch : daggy-update

created branch time in 23 days

fork dlight/nannou

A Creative Coding Framework for Rust.

https://nannou.cc/

fork in 23 days

startednannou-org/nannou

started time in 23 days

issue closedcrev-dev/crev

Web interface

Is there a web interface for browsing all reviews of a given package, across the whole crev ecosystem? It can be read only.

closed time in a month

dlight

issue commentcrev-dev/crev

Web interface

Thanks!

dlight

comment created time in a month

startedarctic-hen7/perseus

started time in a month

issue openedcrev-dev/crev

Web interface

Is there a web interface for browsing all reviews of a given package, across the whole crev ecosystem? It can be read only.

created time in a month

starteddimforge/bevy_salva

started time in a month

startedsaleone/fabrik

started time in a month

startedlibcala/stick

started time in a month

startedhome-sweet-gnome/dash-to-panel

started time in a month

startedspietika/restson-rust

started time in a month

startedGui-Yom/nuance

started time in 2 months

startedtinysearch/tinysearch

started time in 2 months

startedchinedufn/percy

started time in 2 months

startedhermitcore/rusty-hermit

started time in 2 months

starteddespawnerer/scooby

started time in 2 months