It's official: Brie Larson will play the Marvel Cinematic Universe's Carol Danvers, the title character of "Captain Marvel." The "Room" star took to Instagram to thank fans for the influx of support she received after she was officially named to play the character.

Woke up this morning thinking about the tidal wave of support I got this weekend. It was nerve-racking to trust fall into the Internet! I know who I am, but its wild how quickly you can forget once someone calls you something terrible. I was reminded how the acceptance of community is a deeply rooted need - but I don't want to live worried people will hate me because I'm myself! We should all have the freedom to be our authentic selves without fear or judgement. It's scary to chip away at all the hardness we coat ourselves with to protect that perfect little being inside. Yeah, people can be mean, but they can also be so many other wonderful things too. Let's make this place a safe space. No hate and more understanding. To the followers that are new: welcome! Sometimes I let people take over my Instagram to share their views of the world. That's coming up next. Thanks for joining us! A photo posted by Brie (@brielarson) on

Marvel Studios made the casting official during a lively Hall H panel at Comic-Con International, where the studio confirmed Academy Award-winning actor Brie Larson in the role. She'll make her first appearance in the upcoming "Avengers: Infinity War" and headline a "Captain Marvel" solo movie currently scheduled for release March 8, 2019.

Larson was reportedly in negotiations for the role in early June. After the panel, she posted a photo of herself wearing a Marvel Studios hat with the caption, "Call me Captain Marvel" -- but one fan took that a step further by photoshopping her SDCC outfit to look more like Danvers' now-iconic costume.

Whoever did this is forever awesome. A photo posted by Brie (@brielarson) on

Written by Nicole Perlman ("Guardians of the Galaxy") and Meg LeFauve ("Inside Out"), "Captain Marvel" is scheduled for release on March 8, 2019. No director has yet been announced.