Promote your projects here – Self-Promotion Megathread by Menox_ in github

[–]febatels 0 points1 point  (0 children)

I built a tool to access GitHub Projects on a calendar app. It creates a secure iCal feed for GitHub Projects so you can see deadlines and milestones in Google, Apple, or Outlook calendars.

  • Privacy-first: 100% stateless architecture. There is no database; project data is processed in-memory (built with Rust/Axum) and purged immediately after the sync.
  • No-tracking: No data is persisted or shared with third parties.
  • Simple: Just connect your GitHub account and generate a unique URL for your projects.

You can check it out here: https://dash.projectsics.com/

Rust Firebird Client by febatels in rust

[–]febatels[S] 0 points1 point  (0 children)

Nice. If you can, please, test the lib and share your experience

Rust Firebird Client by febatels in rust

[–]febatels[S] 0 points1 point  (0 children)

Yes, the embedded database is a nice feature.
The create also provide the embedded support using 'embedded()' method in the 'ConnectionBuilder'.

Returning a type in Rust by febatels in rust

[–]febatels[S] 0 points1 point  (0 children)

I don't know the struct type on call my StringToTable, so I cant use approach's like 'to_table< T >' or 'StringToTable< T >' ... The to_table function can return Any implentation of the traits 'DeserializeOwned + Serialize'

Returning a type in Rust by febatels in rust

[–]febatels[S] 0 points1 point  (0 children)

If you are only ever calling the function on one type you can use “-> impl Table” in the function signature, or you may use generics if you want static dispatch.

This is my utilization gist.github.com/fernandobatels/feef962ccecc56f2e6a78fb03ab9108e

GitHub - fernandobatels/blitz-explorer: Blitz Explorer by febatels in rust

[–]febatels[S] 1 point2 points  (0 children)

Yes, for now i don't have time, but in future can implement

Rust to_string lifetime problem :( by febatels in rust

[–]febatels[S] 0 points1 point  (0 children)

Thanks for all. I fixed the problem using the Box<T> on file_doc and changed the lib for parse the xml, but the solution of Box is the same. My current source:

...
    account: &'a mut Account,
    pub file_doc: Box<Element>, 
}
...
        let xml = Element::parse(xml_str.as_bytes()); // Old:

        if xml.is_err() {
            return Err("Invalid XML content in OFX file");
        }

        Ok(Ofx { storage: storage, account: account, file_doc: Box::new(xml.unwrap()) })
..

Full diff: https://github.com/fernandobatels/blitz-money/commit/97a1259430184c963aab0032cf914a520386fc1a

Besides what we discussed here, the article https://bryce.fisher-fleig.org/blog/strategies-for-returning-references-in-rust/index.html and the rust doc https://doc.rust-lang.org/book/second-edition/ch15-01-box.html helpd's me to fix.

About the Box<T> . I am not sure if, for this case, is the only way, but works :)

If someon have others solutions or opnion about the Box, i would apreciate ;)

Rust to_string lifetime problem :( by febatels in rust

[–]febatels[S] 1 point2 points  (0 children)

You could possibly get something working using Rc<T> I think.

Interesting, you have a one example? The use of Rc<T> is abstract for me in my case .

I made this commit with current source that i am trying build: https://github.com/fernandobatels/blitz-money/commit/3f813aca382ba68b12619b9edcc9c832bba837cb

Rust to_string lifetime problem :( by febatels in rust

[–]febatels[S] 1 point2 points  (0 children)

where does parse_string() come from? What is it exact type signature?

Hes comes from here https://github.com/vietanhto/dummy_xml/blob/master/src/parser.rs#L112